Example usage for Java org.apache.commons.lang3.mutable MutableInt fields, constructors, methods, implement or subclass
The text is from its open source code.
MutableInt(final int value) Constructs a new MutableInt with the specified value. | |
MutableInt(final Number value) Constructs a new MutableInt with the specified value. | |
MutableInt(final String value) Constructs a new MutableInt parsing the given string. | |
MutableInt() Constructs a new MutableInt with the default value of zero. |
void | add(final int operand) Adds a value to the value of this instance. |
void | add(final Number operand) Adds a value to the value of this instance. |
int | compareTo(final MutableInt other) Compares this mutable to another in ascending order. |
void | decrement() Decrements the value. |
Integer | getValue() Gets the value as a Integer instance. |
void | increment() Increments the value. |
int | intValue() Returns the value of this MutableInt as an int. |
long | longValue() Returns the value of this MutableInt as a long. |
void | setValue(final int value) Sets the value. |
void | setValue(final Number value) Sets the value from any Number instance. |
short | shortValue() Returns the value of the specified number as a short . |
void | subtract(final int operand) Subtracts a value from the value of this instance. |
void | subtract(final Number operand) Subtracts a value from the value of this instance. |
Integer | toInteger() Gets this mutable as an instance of Integer. |
String | toString() Returns the String value of this mutable. |