Example usage for Java org.apache.commons.lang3.mutable MutableLong fields, constructors, methods, implement or subclass
The text is from its open source code.
MutableLong() Constructs a new MutableLong with the default value of zero. | |
MutableLong(final long value) Constructs a new MutableLong with the specified value. | |
MutableLong(final Number value) Constructs a new MutableLong with the specified value. | |
MutableLong(final String value) Constructs a new MutableLong parsing the given string. |
void | add(final long operand) Adds a value to the value of this instance. |
void | add(final Number operand) Adds a value to the value of this instance. |
void | decrement() Decrements the value. |
Long | getValue() Gets the value as a Long instance. |
void | increment() Increments the value. |
int | intValue() Returns the value of this MutableLong as an int. |
long | longValue() Returns the value of this MutableLong as a long. |
void | setValue(final long value) Sets the value. |
void | setValue(final Number value) Sets the value from any Number instance. |
Long | toLong() Gets this mutable as an instance of Long. |