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)  | 
static ThreadLocal<MutableLong> | 
createThreadLocal()
Return a ThreadLocal of MutableLong. 
 | 
long | 
decrementAndGet()
Decrement the long and return the new value. 
 | 
double | 
doubleValue()  | 
boolean | 
equals(Object that)  | 
float | 
floatValue()  | 
long | 
get()
Return the current value. 
 | 
int | 
hashCode()  | 
long | 
incrementAndGet()
Increment the long and return the new value. 
 | 
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 long incrementAndGet()
public long decrementAndGet()
public static ThreadLocal<MutableLong> createThreadLocal()
public float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic int compareTo(MutableLong that)
compareTo in interface Comparable<MutableLong>