pl.kernelpanic.dbmonster
Class Dictionary

java.lang.Object
  extended bypl.kernelpanic.dbmonster.Dictionary

public class Dictionary
extends Object

Dictionary.

Version:
$Id: Dictionary.html,v 1.1 2007/06/21 08:38:14 sbahloul Exp $
Author:
Piotr Maj <piotr.maj@kernelpanic.pl>

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 final Object getNextRandomItem()
Returns next random object.

Returns:
next random object

getNextUniqueItem

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

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

reset

public final void reset()
Resets this dictionary.


getName

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

Returns:
name

setName

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

Parameters:
s - name

setRandom

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

Parameters:
r - random number generator

addItem

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

Parameters:
item - new item


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