|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Number
au.gov.tas.dpiwe.mr.util.MrNumber
au.gov.tas.dpiwe.mr.util.MutableLong
public class MutableLong
The MutableLong class wraps a value of the primitive type long in an object. An object of type MutableLong contains a single field whose type is long, as well as a type value which suggests the preferred formatting.
| Constructor Summary | |
|---|---|
MutableLong()
Allocates a MutableLong object with the value 0. |
|
MutableLong(long l)
Allocates a MutableLong object. |
|
| Method Summary | |
|---|---|
byte |
byteValue()
Returns the value of this MutableLong as a byte primitive. |
double |
doubleValue()
Returns the value of this MutableLong as a double primitive. |
boolean |
equals(Object obj)
Compares this object to the specified object. |
float |
floatValue()
Returns the value of this MutableLong as a float primitive. |
long |
getLong()
Returns the value of this MutableLong object as an long primitive. |
Number |
getNumber()
Returns the value of this MutableLong object as an immutable Long. |
int |
hashCode()
Returns a hash code for this MutableLong. |
int |
intValue()
Returns the value of this MutableLong as an int primitive. |
long |
longValue()
Returns the value of this MutableLong as a long primitive. |
MutableLong |
setLong(long l)
Changes the long primitive value of this MutableLong object. |
short |
shortValue()
Returns the value of this MutableLong as a short primitive. |
String |
toString()
Returns a String representing this MutableLong's value. |
| Methods inherited from class au.gov.tas.dpiwe.mr.util.MrNumber |
|---|
clone, compareTo, divide, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getType, getUnit, multiply, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setType, setUnit |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface au.gov.tas.dpiwe.mr.util.TypedNumber |
|---|
clone, divide, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getType, getUnit, multiply, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setType, setUnit |
| Constructor Detail |
|---|
public MutableLong()
public MutableLong(long l)
i - the long value to be wrapped.| Method Detail |
|---|
public long getLong()
public Number getNumber()
getNumber in class MrNumberpublic MutableLong setLong(long l)
l - the new long value of this object.
public byte byteValue()
byteValue in class Numberpublic short shortValue()
shortValue in class Numberpublic int intValue()
intValue in class Numberpublic long longValue()
longValue in class Numberpublic float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic String toString()
The value is converted to signed decimal representation and returned as a string.
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
The result is true if and only if the argument is not null and is an Long ot MutableLong object that contains the same long primitive value as this object.
equals in class Objectobj - the object to compare with.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||