|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mss.ea.core.UniqueID
Class for generating unique identifiers. As identifier there can be either long integers or strings. Every request for an ID will increment an internal counter, so there is no way for getting an ID twice.
Field Summary | |
protected static long |
longID
Internal long ID. |
protected static long |
rangeCounter
Counter for calculations in randomLong(). |
protected static long |
rangeExponent
Exponent for range calculation in randomLong(). |
protected static java.lang.StringBuffer |
stringID
Internal string ID. |
Constructor Summary | |
UniqueID()
|
Method Summary | |
protected static void |
decrementString()
Decrements a string. |
static long |
getLong()
Gets a new long ID. |
static long |
getLongID()
Deprecated. replaced by getLong() |
static java.lang.Long |
getLongIntegerID()
Deprecated. use new Integer( UniqueID.getLong() ) instead |
static java.lang.String |
getString()
Gets a new string ID. |
static java.lang.String |
getStringID()
Deprecated. replaced by getString() |
protected static void |
incrementString()
Increments a string. |
protected static long |
pow10(long exp)
Raises the exponent to the power of ten. |
static long |
randomLong()
Gets a random long ID. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static long longID
protected static java.lang.StringBuffer stringID
protected static long rangeExponent
protected static long rangeCounter
Constructor Detail |
public UniqueID()
Method Detail |
public static long getLongID()
public static long getLong()
public static java.lang.Long getLongIntegerID()
public static long randomLong()
protected static long pow10(long exp)
exp
- exponentpublic static java.lang.String getStringID()
public static java.lang.String getString()
protected static void decrementString()
protected static void incrementString()
|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |