org.apache.bsf.debug.util
public class IntHashtable extends Object implements Cloneable
See Also: Enumeration java.io.Serializable java.lang.Object#equals java.lang.Object#hashCode
Constructor Summary | |
---|---|
IntHashtable()
Constructs a new Hashtable using the default capacity
and load factor.
| |
IntHashtable(int capacity)
Constructs a new IntHashtable using the specified capacity
and the default load factor.
| |
IntHashtable(int capacity, float loadFactor)
Constructs a new IntHashtable using the specified capacity
and load factor.
|
Method Summary | |
---|---|
void | clear()
Removes all key/value pairs from this IntHashtable, leaving the size zero
and the capacity unchanged.
|
Object | clone()
Answers a new IntHashtable with the same key/value pairs, capacity
and load factor.
|
boolean | contains(Object value)
Answers if this Hashtable contains the specified object as the value
of at least one of the key/value pairs.
|
boolean | containsKey(int key)
Answers if this Hashtable contains the specified object as a key
of one of the key/value pairs.
|
Enumeration | elements()
Answers an Enumeration on the values of this Hashtable. |
Object | get(int key)
Answers the value associated with the specified key in
this Hashtable.
|
boolean | isEmpty()
Answers if this Hashtable has no key/value pairs, a size of zero.
|
Object | put(int key, Object value)
Associate the specified value with the specified key in this Hashtable.
|
protected void | rehash()
Increases the capacity of this Hashtable. |
Object | remove(int key)
Remove the key/value pair with the specified key from this Hashtable.
|
int | size()
Answers the number of key/value pairs in this Hashtable.
|
String | toString()
Answers the string representation of this Hashtable.
|
Parameters: capacity the initial capacity
Parameters: capacity the initial capacity loadFactor the initial load factor
See Also: IntHashtable IntHashtable
Returns: a shallow copy of this IntHashtable
See Also: java.lang.Cloneable
Parameters: value the object to look for as a value in this Hashtable
Returns: true if object is a value in this Hashtable, false otherwise
See Also: IntHashtable java.lang.Object#equals
Parameters: key the object to look for as a key in this Hashtable
Returns: true if object is a key in this Hashtable, false otherwise
See Also: IntHashtable java.lang.Object#equals
Returns: an Enumeration of the values of this Hashtable
See Also: IntHashtable IntHashtable Enumeration
Parameters: key the key of the value returned
Returns: the value associated with the specified key, null if the specified key does not exist
See Also: IntHashtable
Returns: true if this Hashtable has no key/value pairs, false otherwise
See Also: IntHashtable
Parameters: key the key to add value the value to add
Returns: the old value associated with the specified key, null if the key did not exist
See Also: IntHashtable IntHashtable IntHashtable java.lang.Object#equals
Parameters: key the key to remove
Returns: the value associated with the specified key, null if the specified key did not exist
See Also: IntHashtable IntHashtable
Returns: the number of key/value pairs in this Hashtable
See Also: IntHashtable IntHashtable
Returns: the string representation of this Hashtable