Dictionary (Java Platform SE 8 ) (original) (raw)


public abstract class Dictionary<K,V>
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 extending this class.
Since:
JDK1.0
See Also:
Map, Object.equals(java.lang.Object), Object.hashCode(), Hashtable

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.