public static class GenMath.MutableLong
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
MutableLong(long value)
Constructor creates a MutableLong object with an initial value.
|
Modifier and Type | Method and Description |
---|---|
void |
increment()
Method to increment this MutableLong by 1.
|
long |
longValue()
Method to return the value of this MutableLong.
|
void |
setValue(long value)
Method to change the value of this MutableLong.
|
java.lang.String |
toString()
Returns a printable version of this MutableLong.
|
public MutableLong(long value)
value
- the initial value.public void setValue(long value)
value
- the new value.public void increment()
public long longValue()
public java.lang.String toString()
toString
in class java.lang.Object