public abstract class Dictionary
extends Object
The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to values. Every key and every value is an object. In any one Dictionary object, every key is associated with at most one value. Given a Dictionary and a key, the associated element can be looked up. Any non-null object can be used as a key and as a value. As a rule, the equals method should be used by implementations of this class to decide if two keys are the same. NOTE: This class is obsolete. New implementations should implement the Map interface, rather than extendidng this class.
extends Object
The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to values. Every key and every value is an object. In any one Dictionary object, every key is associated with at most one value. Given a Dictionary and a key, the associated element can be looked up. Any non-null object can be used as a key and as a value. As a rule, the equals method should be used by implementations of this class to decide if two keys are the same. NOTE: This class is obsolete. New implementations should implement the Map interface, rather than extendidng this class.
abstract Enumeration elements()
Returns an enumeration of the values in this dictionary.
abstract Object get(Object key)
Returns the value to which the key is mapped in this dictionary.
abstract boolean isEmpty()
Tests if this dictionary maps no keys to value.
abstract Enumeration keys()
Returns an enumeration of the keys in this dictionary.
abstract Object put(Object key, Object value)
Maps the specified key to the specified value in this dictionary.
abstract Object remove(Object key)
Removes the key (and its corresponding value) from this dictionary.
abstract int size()
Returns the number of entries (dinstint keys) in this dictionary.