| java.lang.Object | |
| ↳ | java.util.Dictionary<K, V> |
Known Direct Subclasses
Hashtable<K, V>
|
Known Indirect Subclasses
|
Note: Do not use this class since it is obsolete. Please use the
Map interface for new implementations.
Dictionary is an abstract class which is the superclass of all classes that
associate keys with values, such as Hashtable.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of this class.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns an enumeration on the elements of this dictionary.
| |||||||||||
Returns the value which is associated with
key.
| |||||||||||
Returns true if this dictionary has no key/value pairs.
| |||||||||||
Returns an enumeration on the keys of this dictionary.
| |||||||||||
Associate
key with value in this dictionary.
| |||||||||||
Removes the key/value pair with the specified
key from this
dictionary.
| |||||||||||
Returns the number of key/value pairs in this dictionary.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Returns an enumeration on the elements of this dictionary.
Returns the value which is associated with key.
| key | the key of the value returned. |
|---|
key, or null if the
specified key does not exist.Returns true if this dictionary has no key/value pairs.
true if this dictionary has no key/value pairs,
false otherwise.Returns an enumeration on the keys of this dictionary.
Associate key with value in this dictionary. If key exists in the dictionary before this call, the old value in the
dictionary is replaced by value.
| key | the key to add. |
|---|---|
| value | the value to add. |
key or null if key is new to the dictionary.Removes the key/value pair with the specified key from this
dictionary.
| key | the key to remove. |
|---|
null if
key was not known to this dictionary.Returns the number of key/value pairs in this dictionary.