You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Stephen Colebourne <sc...@btopenworld.com> on 2006/03/20 01:35:35 UTC

[lang] Mutable* increment decrement, add and subtract

I would like to add the following methods to the Mutable* number classes

- increment
- decrement
- addValue(int/short/...)
- addValue(Number)
- subtractValue(int/short/...)
- subtractValue(Number)

Only question is whether we should try to catch overflow conditions or 
not. That could get quite complex.

Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: [lang] Mutable* increment decrement, add and subtract

Posted by Steven Caswell <st...@gmail.com>.
I'm all for simplicity so not trying to catch overflow conditions is
fine by me as long as we document appropriately.

On 3/19/06, Stephen Colebourne <sc...@btopenworld.com> wrote:
> I would like to add the following methods to the Mutable* number classes
>
> - increment
> - decrement
> - addValue(int/short/...)
> - addValue(Number)
> - subtractValue(int/short/...)
> - subtractValue(Number)
>
> Only question is whether we should try to catch overflow conditions or
> not. That could get quite complex.
>
> Stephen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>


--
Steven Caswell
steven.caswell@gmail.com

(c) 404-693-4148
(o) 404-260-2382

Take back the web - http://www.mozilla.org

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org