|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--Opus5.AbstractObject
|
+--Opus5.Lng
Wrapper class that wraps a long
and implements the Comparable interface.
Comparable| Field Summary | |
protected long |
value
The wrapped long. |
| Fields inherited from interface Opus5.Comparable |
copyright |
| Constructor Summary | |
Lng(long value)
Constructs a Lng with the specified value. |
|
| Method Summary | |
protected int |
compareTo(Comparable object)
Compares this Lng with the specified comparable object. |
int |
hashCode()
Returns a hashcode for this Lng. |
long |
longValue()
Returns the value of this Lng. |
java.lang.String |
toString()
Returns a string representation of this Lng. |
| Methods inherited from class Opus5.AbstractObject |
compare, equals, isEQ, isGE, isGT, isLE, isLT, isNE |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected long value
long.| Constructor Detail |
public Lng(long value)
Lng with the specified value.value - The specified value.| Method Detail |
public long longValue()
Lng.Lng.protected int compareTo(Comparable object)
Lng with the specified comparable object.
The specified comparable object is assumed to be
a Lng instance.compareTo in class AbstractObjectobject - The object with which this object is compared.-1 if this object is less than
the specified object;
+1 if this object is greater than
the specfied object;
zero if the two objects are equal.public int hashCode()
Lng.hashCode in class java.lang.ObjectLng.public java.lang.String toString()
Lng.toString in class java.lang.ObjectLng.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||