public class MutableLong extends Numberimplements Comparable <Number >
Number can change value, so for operations that need to be computed millions of times, recycling 1 object will save a lot of memory allocation.
| Modifier and Type | Field and Description |
|---|---|
long |
value
|
| Constructor and Description |
|---|
MutableLong()
|
MutableLong(long v)
|
public StringtoString()
public Objectclone()
public boolean equals(Objectt)
public int hashCode()
public double doubleValue()
public float floatValue()
public int intValue()
public long longValue()
public int compareTo(Numbern)