|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.evolvica.util.UniqueID
Class for generating unique identifiers. As identifier there can be either integers, 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 int |
intID
Internal integer ID. |
protected static long |
longID
Internal long ID. |
protected static java.lang.StringBuffer |
stringID
Internal string ID. |
Constructor Summary | |
UniqueID()
|
Method Summary | |
protected static void |
decString()
Decrements a string. |
protected static void |
incString()
Increments a string. |
static int |
nextInt()
Gets a new integer ID. |
static long |
nextLong()
Gets a new long ID. |
static java.lang.String |
nextString()
Gets a new string ID. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static int intID
protected static long longID
protected static java.lang.StringBuffer stringID
Constructor Detail |
public UniqueID()
Method Detail |
public static int nextInt()
public static long nextLong()
public static java.lang.String nextString()
protected static void decString()
protected static void incString()
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |