Example usage for Java org.apache.commons.lang.mutable MutableInt fields, constructors, methods, implement or subclass
The text is from its open source code.
MutableInt() Constructs a new MutableInt with the default value of zero. | |
MutableInt(int value) Constructs a new MutableInt with the specified value. | |
MutableInt(Number value) Constructs a new MutableInt with the specified value. |
void | add(int operand) Adds a value. |
void | add(Number operand) Adds a value. |
void | decrement() Decrements the value. |
Object | getValue() Gets the value as a Integer instance. |
void | increment() Increments the value. |
int | intValue() Returns the value of this MutableInt as a int. |
long | longValue() Returns the value of this MutableInt as a long. |
void | setValue(int value) Sets the value. |
void | setValue(Object value) Sets the value from any Number instance. |
void | subtract(int operand) Subtracts a value. |
void | subtract(Number operand) Subtracts a value. |
Integer | toInteger() Gets this mutable as an instance of Integer. |
String | toString() Returns the String value of this mutable. |