[lang] Mutable* increment decrement, add and subtract in Interface / Abstract class

2006-11-29 Thread Fabien Le Floc'h
Mutable* increment decrement, add and subtract methods are available on all numbers. It would be nice to have a MutableNumber interface (or abstract class extending Number) specifying those methods. This can be useful when some object takes a MutableNumber as input. It would be nice as well to

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

2006-03-20 Thread Steven Caswell
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 [EMAIL PROTECTED] wrote: I would like to add the following methods to the Mutable* number classes - increment - decrement -

[lang] Mutable* increment decrement, add and subtract

2006-03-19 Thread Stephen Colebourne
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

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

2006-03-19 Thread Gary Gregory
PROTECTED] Sent: Sunday, March 19, 2006 4:36 PM To: Jakarta Commons Developers List Subject: [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