frysk.gui.monitor
Class UniqueHashMap

java.lang.Object
  extended by frysk.gui.monitor.UniqueHashMap

public class UniqueHashMap
extends Object

A HashMap of GuiObjects. Makes sure that the objects added to it are unique, and throws and exception if that is violated.


Constructor Summary
UniqueHashMap()
           
 
Method Summary
 void add(GuiObject object)
           
 void clear()
           
 GuiObject get(String name)
           
 boolean nameIsUsed(String key)
          Checks of the given key is used already or not
 void remove(GuiObject object)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueHashMap

public UniqueHashMap()
Method Detail

nameIsUsed

public boolean nameIsUsed(String key)
Checks of the given key is used already or not

Parameters:
key -
Returns:
true of the key isn ot used false if it is

clear

public void clear()

add

public void add(GuiObject object)

remove

public void remove(GuiObject object)

get

public GuiObject get(String name)