Save This Page
Home » openjdk-7 » com.sun.corba.se.impl » util » [javadoc | source]
com.sun.corba.se.impl.util
public final class: IdentityHashtable [javadoc | source]
java.lang.Object
   java.util.Dictionary
      com.sun.corba.se.impl.util.IdentityHashtable
Constructor:
 public IdentityHashtable() 
 public IdentityHashtable(int initialCapacity) 
 public IdentityHashtable(int initialCapacity,
    float loadFactor) 
Method from com.sun.corba.se.impl.util.IdentityHashtable Summary:
clear,   contains,   containsKey,   elements,   get,   isEmpty,   keys,   put,   rehash,   remove,   size,   toString
Methods from java.util.Dictionary:
elements,   get,   isEmpty,   keys,   put,   remove,   size
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.corba.se.impl.util.IdentityHashtable Detail:
 public  void clear() 
    Clears this hashtable so that it contains no keys.
 public boolean contains(Object value) 
    Tests if some key maps into the specified value in this hashtable. This operation is more expensive than the containsKey method.
 public boolean containsKey(Object key) 
    Tests if the specified object is a key in this hashtable.
 public Enumeration elements() 
    Returns an enumeration of the values in this hashtable. Use the Enumeration methods on the returned object to fetch the elements sequentially.
 public Object get(Object key) 
    Returns the value to which the specified key is mapped in this hashtable.
 public boolean isEmpty() 
    Tests if this hashtable maps no keys to values.
 public Enumeration keys() 
    Returns an enumeration of the keys in this hashtable.
 public Object put(Object key,
    Object value) 
    Maps the specified key to the specified value in this hashtable. Neither the key nor the value can be null.

    The value can be retrieved by calling the get method with a key that is equal to the original key.

 protected  void rehash() 
    Rehashes the contents of the hashtable into a hashtable with a larger capacity. This method is called automatically when the number of keys in the hashtable exceeds this hashtable's capacity and load factor.
 public Object remove(Object key) 
    Removes the key (and its corresponding value) from this hashtable. This method does nothing if the key is not in the hashtable.
 public int size() 
    Returns the number of keys in this hashtable.
 public String toString() 
    Returns a rather long string representation of this hashtable.