|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--de.jface.remind.core.UniqueNumber
| Method Summary | |
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
|
static UniqueNumber |
getInstance(long uniqueNumber)
Returns an existing instance of UniqueNumber or null
if no instance with the given uniqueNumber exists. |
int |
hashCode()
|
long |
longValue()
Returns the value of the UniqueNumber as long. |
static UniqueNumber |
newInstance()
Creates a new UniqueNumber instance. |
static UniqueNumber |
newInstance(long uniqueNumber)
Returns a new instance with the given uniqueNumber. |
static UniqueNumber |
newInstance(long uniqueNumber,
boolean allowModify)
Returns a new instance with the given uniqueNumber. |
static void |
reset()
Used to reset the internal counters and instance list. |
java.lang.String |
toString()
Returns the String representation of the UniqueNumber. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static UniqueNumber newInstance()
UniqueNumber instance.java.lang.RuntimeException - if the creation of the new UniqueNumber
fails.
public static UniqueNumber newInstance(long uniqueNumber)
throws IllegalUniqueNumberException
public static UniqueNumber newInstance(long uniqueNumber,
boolean allowModify)
throws IllegalUniqueNumberException
IllegalUniqueNumberException is thrown, depending
on the allowModify flag. If the flag is true, the Exception is
not thrown.public static UniqueNumber getInstance(long uniqueNumber)
UniqueNumber or null
if no instance with the given uniqueNumber exists.public long longValue()
UniqueNumber as long.public static void reset()
public java.lang.String toString()
String representation of the UniqueNumber.toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||