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
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
-
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
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