Save This Page
Home » bsf-src-2.4.0 » org.apache.bsf.debug.util » [javadoc | source]
org.apache.bsf.debug.util
public class: IntHashtable [javadoc | source]
java.lang.Object
   org.apache.bsf.debug.util.IntHashtable

All Implemented Interfaces:
    Cloneable

Hashtable associates keys with values. Keys and values cannot be null. The size of the Hashtable is the number of key/value pairs it contains. The capacity is the number of key/value pairs the Hashtable can hold. The load factor is a float value which determines how full the Hashtable gets before expanding the capacity. If the load factor of the Hashtable is exceeded, the capacity is doubled.
Field Summary
 int elementCount     
 IntHashMapEntry[] elementData     
Constructor:
 public IntHashtable() 
 public IntHashtable(int capacity) 
 public IntHashtable(int capacity,
    float loadFactor) 
Method from org.apache.bsf.debug.util.IntHashtable Summary:
clear,   clone,   contains,   containsKey,   elements,   get,   isEmpty,   put,   rehash,   remove,   size,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.bsf.debug.util.IntHashtable Detail:
 public synchronized  void clear() 
    Removes all key/value pairs from this IntHashtable, leaving the size zero and the capacity unchanged.
 public synchronized Object clone() 
    Answers a new IntHashtable with the same key/value pairs, capacity and load factor.
 public synchronized boolean contains(Object value) 
    Answers if this Hashtable contains the specified object as the value of at least one of the key/value pairs.
 public synchronized boolean containsKey(int key) 
    Answers if this Hashtable contains the specified object as a key of one of the key/value pairs.
 public synchronized Enumeration elements() 
    Answers an Enumeration on the values of this Hashtable. The results of the Enumeration may be affected if the contents of this Hashtable are modified.
 public synchronized Object get(int key) 
    Answers the value associated with the specified key in this Hashtable.
 public boolean isEmpty() 
    Answers if this Hashtable has no key/value pairs, a size of zero.
 public synchronized Object put(int key,
    Object value) 
    Associate the specified value with the specified key in this Hashtable. If the key already exists, the old value is replaced. The key and value cannot be null.
 protected  void rehash() 
    Increases the capacity of this Hashtable. This method is sent when the size of this Hashtable exceeds the load factor.
 public synchronized Object remove(int key) 
    Remove the key/value pair with the specified key from this Hashtable.
 public int size() 
    Answers the number of key/value pairs in this Hashtable.
 public synchronized String toString() 
    Answers the string representation of this Hashtable.