|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.util.IDGenerator
An ID generator that gives out positive integer IDs and checks for overflow.
Field Summary | |
static int |
NON_ID
Indicates a non-ID value, which is -1. |
Constructor Summary | |
IDGenerator()
|
Method Summary | |
int |
getNextID()
Returns the next valid ID, checks for integer overflow. |
void |
reset()
Resets the ID to zero. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NON_ID
Constructor Detail |
public IDGenerator()
Method Detail |
public int getNextID()
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |