[all packages] 
[package gj.util] 
[class hierarchy] 
[index] 
public abstract class gj.util.Dictionary<A, B>
(source file: util/Dictionary.java)
java.lang.Object
   |
   +----gj.util.Dictionary<A, B>
The pure class interface.
public abstract class Dictionary<A, B>
  -  
 The Dictionary class is the abstract parent of Hashtable, which maps
 keys to values. Any object can be used as a key and/or value.  
- 
    -  See also:
-  pizza.util.Hashtable, hashCode, equals
 

   Dictionary() Dictionary()
- 

   elements() elements()
- 
 Returns an enumeration of the elements
  
 get(A) get(A)
- 
 Gets the object associated with the specified key in the Dictionary.
  
 isEmpty() isEmpty()
- 
 Returns true if the Dictionary contains no elements.
  
 keys() keys()
- 
 Returns an enumeration of the Dictionary's keys.
  
 put(A, B) put(A, B)
- 
 Puts the specified element into the Dictionary, using the specified
 key
  
 remove(A) remove(A)
- 
 Removes the element corresponding to the key
  
 size() size()
- 
 Returns the number of elements contained within the Dictionary

 Dictionary
 Dictionary
public Dictionary();

 size
 size
public abstract int size();
  -  
 Returns the number of elements contained within the Dictionary. 
- 
   
 isEmpty
 isEmpty
public abstract boolean isEmpty();
  -  
 Returns true if the Dictionary contains no elements.
- 
   
 keys
 keys
public abstract Enumeration<A> keys();
  -  
 Returns an enumeration of the Dictionary's keys.
- 
    -  See also:
-  elements, Enumeration
 
 elements
 elements
public abstract Enumeration<B> elements();
  -  
 Returns an enumeration of the elements. Use the Enumeration methods 
 on the returned object to fetch the elements sequentially.
- 
    -  See also:
-  keys, Enumeration
 
 get
 get
public abstract B get(A key);
  -  
 Gets the object associated with the specified key in the Dictionary.
- 
    -  Parameters:
- key - the key in the hash table
 @returns the element for the key, or null if the key
 		is not defined in the hash table.
-  See also:
-  put
 
 put
 put
public abstract B put(A key,
                      B value);
  -  
 Puts the specified element into the Dictionary, using the specified
 key.  The element may be retrieved by doing a get() with the same 
 key.  The key and the element cannot be null.
- 
    -  Parameters:
- key - the specified hashtable key
- value - the specified element 
-  Returns:
- the old value of the key, or null if it did not have one.
-  Throws:
- 
      - NullPointerException -If the value of the specified
 element is null.
 
- 
    
-  See also:
-  get
 
 remove
 remove
public abstract B remove(A key);
  -  
 Removes the element corresponding to the key. Does nothing if the
 key is not present.
- 
    -  Parameters:
- key - the key that needs to be removed
-  Returns:
- the value of key, or null if the key was not found.
 
[all packages] 
[package gj.util] 
[class hierarchy] 
[index] 
gj.util.Dictionary.html