public class MutableLong extends Number implements Comparable<MutableLong>
| Modifier and Type | Field and Description |
|---|---|
protected long |
m_lValue
The value.
|
| Constructor and Description |
|---|
MutableLong()
Construct a MutableLong with a zero initial value.
|
MutableLong(long lValue)
Construct a MutableLong with the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MutableLong that) |
double |
doubleValue() |
boolean |
equals(Object that) |
float |
floatValue() |
long |
get()
Return the current value.
|
int |
hashCode() |
int |
intValue() |
long |
longValue() |
MutableLong |
set(long lValue)
Update the value
|
String |
toString() |
byteValue, shortValuepublic MutableLong()
public MutableLong(long lValue)
lValue - the initial valuepublic MutableLong set(long lValue)
lValue - the new valuepublic long get()
public float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic int compareTo(MutableLong that)
compareTo in interface Comparable<MutableLong>