public final class MutableLong extends Number implements Comparable<MutableLong>
| Constructor and Description |
|---|
MutableLong() |
MutableLong(int i) |
| Modifier and Type | Method and Description |
|---|---|
byte |
byteValue() |
int |
compareTo(MutableLong anotherMutableLong)
Compares two
MutableLong objects numerically. |
double |
doubleValue() |
boolean |
equals(Object obj)
Compares this object to the specified object.
|
float |
floatValue() |
int |
hashCode() |
void |
incValue(int val)
Add the argument to the value of this integer.
|
int |
intValue() |
long |
longValue() |
void |
set(long i) |
short |
shortValue() |
String |
toString() |
public void set(long i)
public boolean equals(Object obj)
true if and only if the argument is not
null and is an MutableInteger object that
contains the same int value as this object.
Note that a MutableInteger isn't and can't be equal to an Integer.public int compareTo(MutableLong anotherMutableLong)
MutableLong objects numerically.compareTo in interface Comparable<MutableLong>anotherMutableLong - the MutableLong to be
compared.0 if this MutableLong is
equal to the argument MutableLong; a value less than
0 if this MutableLong is numerically less
than the argument MutableLong; and a value greater
than 0 if this MutableLong is numerically
greater than the argument MutableLong (signed
comparison).public short shortValue()
shortValue in class Numberpublic float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic void incValue(int val)
val - Value to be added to this integer