frysk.gui.monitor
Class UniqueHashMap
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nameHash
private HashMap nameHash
keyHash
private HashMap keyHash
nameChangedObserver
Observer nameChangedObserver
UniqueHashMap
public UniqueHashMap()
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)