| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.Dictionary
Dictionary is a abstract class which is the superclass of all classes that associate keys with values, such as Hashtable.
Hashtable| Constructor Summary | |
| Dictionary()Constructs a new instance of this class. | |
| Method Summary | |
| abstract  Enumeration | elements()Answers an Enumeration on the elements of this Dictionary. | 
| abstract  java.lang.Object | get(java.lang.Object key)Answers the value associated with key. | 
| abstract  boolean | isEmpty()Answers if this Dictionary has no key/value pairs, a size of zero. | 
| abstract  Enumeration | keys()Answers an Enumeration on the keys of this Dictionary. | 
| abstract  java.lang.Object | put(java.lang.Object key,
    java.lang.Object value)Associate keywithvaluein thisDictionary. | 
| abstract  java.lang.Object | remove(java.lang.Object key)Remove the key/value pair with the specified keyfrom thisDictionary. | 
| abstract  int | size()Answers the number of key/value pairs in this Dictionary. | 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public Dictionary()
| Method Detail | 
public abstract Enumeration elements()
keys(), 
size(), 
Enumerationpublic abstract java.lang.Object get(java.lang.Object key)
key.
key - the key of the value returned
key or null
         if the specified key does not existput(java.lang.Object, java.lang.Object)public abstract boolean isEmpty()
size()public abstract Enumeration keys()
elements(), 
size(), 
Enumeration
public abstract java.lang.Object put(java.lang.Object key,
                                     java.lang.Object value)
key with value in this
 Dictionary. If key exists in the
 Dictionary prior to this call being made, the old value is
 replaced.
key - the key to addvalue - the value to add
key or
         null if key is new to the
         Dictionary.elements(), 
get(java.lang.Object), 
keys()public abstract java.lang.Object remove(java.lang.Object key)
key from this
 Dictionary.
key - the key to remove
null if
         key is not known to this Dictionaryget(java.lang.Object), 
put(java.lang.Object, java.lang.Object)public abstract int size()
elements(), 
keys()| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||