|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.kernelpanic.dbmonster.Dictionary
public class 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 Object getNextRandomItem()
public Object getNextUniqueItem()
throws Exception
Exception - if there is no more unique valuespublic void reset()
public String getName()
public void setName(String s)
s - namepublic void setRandom(Random r)
r - random number generatorpublic void addItem(String item)
item - new item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||