Name
Dictionary<K,V>
Synopsis
This
abstract class is the superclass of Hashtable
.
Other hashtable-like data structures might also extend this class.
See Hashtable
for more information. As of Java
1.2, the Map
interface replaces the functionality
of this class.
public abstract class Dictionary<K,V> { // Public Constructors public Dictionary( ); // Public Instance Methods public abstract Enumeration<V> elements( ); public abstract V get(Object key); public abstract boolean isEmpty( ); public abstract Enumeration<K> keys( ); public abstract V put(K key, V value); public abstract V remove(Object key); public abstract int size( ); }
Subclasses
Hashtable
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.