HTTPClient
Class CIHashtable
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--HTTPClient.CIHashtable
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- class CIHashtable
- extends java.util.Hashtable
This class implements a Hashtable with case-insensitive Strings as keys.
- See Also:
- Serialized Form
| Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
CIHashtable()
Create a new CIHashtable with a default initial capacity. |
CIHashtable(int initialCapacity)
Create a new CIHashtable with the specified initial capacity. |
CIHashtable(int initialCapacity,
float loadFactor)
Create a new CIHashtable with the specified initial capacity and the
specified load factor. |
| Type | Method |
boolean |
containsKey(java.lang.String key)
Looks whether any object is associated with the specified key. |
java.lang.Object |
get(java.lang.String key)
Retrieves the object associated with the specified key. |
java.util.Enumeration |
keys()
Returns an enumeration of all the keys in the Hashtable. |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Stores the specified object with the specified key. |
java.lang.Object |
remove(java.lang.String key)
Removes the object associated with this key from the Hashtable. |
| Methods inherited from class java.util.Hashtable |
, clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
CIHashtable
public CIHashtable(int initialCapacity,
float loadFactor)
- Create a new CIHashtable with the specified initial capacity and the
specified load factor.
- Parameters:
intialCapacity - the initial number of bucketsloadFactor - a number between 0.0 and 1.0- See Also:
java.util.Hashtable(int, float)
CIHashtable
public CIHashtable(int initialCapacity)
- Create a new CIHashtable with the specified initial capacity.
- Parameters:
intialCapacity - the initial number of buckets- See Also:
java.util.Hashtable(int)
CIHashtable
public CIHashtable()
- Create a new CIHashtable with a default initial capacity.
- See Also:
java.util.Hashtable()
get
public java.lang.Object get(java.lang.String key)
- Retrieves the object associated with the specified key. The key lookup
is case-insensitive.
- Parameters:
key - the key- Returns:
- the object associated with the key, or null if none found.
- See Also:
java.util.Hashtable.get(Object)
put
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
- Stores the specified object with the specified key.
- Parameters:
key - the keyvalue - the object to be associated with the key- Returns:
- the object previously associated with the key, or null if
there was none.
- See Also:
java.util.Hashtable.put(Object, Object)
containsKey
public boolean containsKey(java.lang.String key)
- Looks whether any object is associated with the specified key. The
key lookup is case insensitive.
- Parameters:
key - the key- Returns:
- true is there is an object associated with key, false otherwise
- See Also:
java.util.Hashtable.containsKey(Object)
remove
public java.lang.Object remove(java.lang.String key)
- Removes the object associated with this key from the Hashtable. The
key lookup is case insensitive.
- Parameters:
key - the key- Returns:
- the object associated with this key, or null if there was none.
- See Also:
java.util.Hashtable.remove(Object)
keys
public java.util.Enumeration keys()
- Returns an enumeration of all the keys in the Hashtable.
- Overrides:
keys in class java.util.Hashtable
- Returns:
- the requested Enumerator
- See Also:
java.util.Hashtable.keys(Object)