|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.kernelpanic.dbmonster.Dictionary
Dictionary.
Constructor Summary | |
Dictionary()
|
Method Summary | |
void |
addItem(String item)
Adds new item to this dictionary. |
String |
getName()
Returns the name of this dictionary. |
Object |
getNextRandomItem()
Returns next random object. |
Object |
getNextUniqueItem()
Returns next unique object. |
void |
reset()
Resets this dictionary. |
void |
setName(String s)
Sets the name of the dictionary. |
void |
setRandom(Random r)
Sets the random generator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Dictionary()
Method Detail |
public final Object getNextRandomItem()
public final Object getNextUniqueItem() throws Exception
Exception
- if there is no more unique valuespublic final void reset()
public final String getName()
public final void setName(String s)
s
- namepublic final void setRandom(Random r)
r
- random number generatorpublic final void addItem(String item)
item
- new item
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |