|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgap.IdFactory
Factory for generating unique IDs across multiple runs.
Field Summary | |
static long |
DEFAULT_BASE_ID
default base ID |
static java.lang.String |
XML_TAG
XML base tag |
Constructor Summary | |
IdFactory()
construct new factory with default values |
|
IdFactory(java.lang.String aFileName)
construct new factory from persisted file aFileName |
Method Summary | |
long |
next()
|
void |
store()
persist object to file |
java.lang.String |
toString()
|
java.lang.String |
toXml()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long DEFAULT_BASE_ID
public static final java.lang.String XML_TAG
Constructor Detail |
public IdFactory()
public IdFactory(java.lang.String aFileName) throws java.io.IOException
aFileName
aFileName
-
java.io.IOException
Method Detail |
public long next()
public java.lang.String toString()
Object.toString()
public java.lang.String toXml()
public void store() throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |