pl.kernelpanic.dbmonster
Class Dictionary

java.lang.Object
  extended by pl.kernelpanic.dbmonster.Dictionary

public class Dictionary
extends Object

Dictionary.

Version:
$Id: Dictionary.java,v 1.2 2006/01/05 16:29:37 majek Exp $
Author:
Piotr Maj <pm@jcake.com>

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

Dictionary

public Dictionary()
Method Detail

getNextRandomItem

public Object getNextRandomItem()
Returns next random object.

Returns:
next random object

getNextUniqueItem

public Object getNextUniqueItem()
                         throws Exception
Returns next unique object.

Returns:
next unique object
Throws:
Exception - if there is no more unique values

reset

public void reset()
Resets this dictionary.


getName

public String getName()
Returns the name of this dictionary.

Returns:
name

setName

public void setName(String s)
Sets the name of the dictionary.

Parameters:
s - name

setRandom

public void setRandom(Random r)
Sets the random generator.

Parameters:
r - random number generator

addItem

public void addItem(String item)
Adds new item to this dictionary.

Parameters:
item - new item


Copyright © 2003-2006 .:. kernelpanic.pl .:.. All Rights Reserved.