| java.util.Hashtable com.sun.media.jai.util.CaselessStringKeyHashtable
Method Summary | |
public Object | clone() Returns a clone of the CaselessStringKeyHashtable
as an Object . | public boolean | containsKey(String key) Tests if the specified String is a key in this
hashtable. | public boolean | containsKey(CaselessStringKey key) Tests if the specified CaselessStringKey is a key in
this hashtable.
Parameters: key - possible key. | public boolean | containsKey(Object key) Allow only String and CaselessStringKey
keys to be looked up. | public Object | get(String key) Returns the value to which the specified key is mapped in this
hashtable. | public Object | get(CaselessStringKey key) Returns the value to which the specified key is mapped in this
hashtable.
Parameters: key - a key in the hashtable. | public Object | get(Object key) Allow only String and CaselessStringKey keys to be looked up.
This always throws an IllegalArgumentException.
Parameters: key - possible key. | public Object | put(String key, Object value) Maps the specified key to the specified
value in this hashtable. | public Object | put(CaselessStringKey key, Object value) Maps the specified key to the specified
value in this hashtable. | public Object | put(Object key, Object value) Allow only String and CaselessStringKey keys to be mapped.
This always throws an IllegalArgumentException.
Parameters: key - possible key. Parameters: value - the value. | public Object | remove(String key) Removes the key (and its corresponding value) from this
hashtable. | public Object | remove(CaselessStringKey key) Removes the key (and its corresponding value) from this
hashtable. | public Object | remove(Object key) Allow only String and CaselessStringKey keys to be removed.
This always throws an IllegalArgumentException.
Parameters: key - possible key. |
CaselessStringKeyHashtable | public CaselessStringKeyHashtable()(Code) | | Constructs a new, empty CaselessStringKeyHashtable.
|
CaselessStringKeyHashtable | public CaselessStringKeyHashtable(Map t)(Code) | | Constructs a new CaselessStringKeyHashtable with the same
mappings as the given Map.
Parameters: t - the map whose mappings are to be placed in this map. |
clone | public Object clone()(Code) | | Returns a clone of the CaselessStringKeyHashtable
as an Object .
|
containsKey | public boolean containsKey(String key)(Code) | | Tests if the specified String is a key in this
hashtable. The key is wrapped by a CaselessStringKey
before being looked up.
Parameters: key - possible key. true if and only if the specified object is a key in this hashtable, as determined by the equals method; false otherwise. |
containsKey | public boolean containsKey(CaselessStringKey key)(Code) | | Tests if the specified CaselessStringKey is a key in
this hashtable.
Parameters: key - possible key. true if and only if the specified object is a key in this hashtable, as determined by the equals method; false otherwise. |
containsKey | public boolean containsKey(Object key)(Code) | | Allow only String and CaselessStringKey
keys to be looked up. This always throws an IllegalArgumentException.
Parameters: key - possible key. always throws IllegalArgumentException. |
get | public Object get(String key)(Code) | | Returns the value to which the specified key is mapped in this
hashtable. The key is wrapped by a CaselessStringKey
before being looked up.
Parameters: key - a key in the hashtable. the value to which the key is mapped in this hashtable;null if the key is not mapped to any value inthis hashtable. See Also: CaselessStringKeyHashtable.put(String,Object) |
put | public Object put(String key, Object value)(Code) | | Maps the specified key to the specified
value in this hashtable. Neither the key nor
the value can be null . The key is wrapped by a
CaselessStringKey before mapping the key to the
value.
The value can be retrieved by calling the get method
with a key that is equal to the original key.
Parameters: key - the hashtable key. Parameters: value - the value. the previous value of the specified key in this hashtable,or null if it did not have one. exception: IllegalArgumentException - if the key or value isnull . See Also: Object.equals(Object) See Also: CaselessStringKeyHashtable.get(String) |
remove | public Object remove(String key)(Code) | | Removes the key (and its corresponding value) from this
hashtable. This method does nothing if the key is not in the
hashtable. The key is wrapped by a CaselessStringKey
before trying to remove the entry.
Parameters: key - the key that needs to be removed. the value to which the key had been mapped in this hashtable,or null if the key did not have a mapping. |
remove | public Object remove(CaselessStringKey key)(Code) | | Removes the key (and its corresponding value) from this
hashtable. This method does nothing if the key is not in the
hashtable.
Parameters: key - the key that needs to be removed. the value to which the key had been mapped in this hashtable,or null if the key did not have a mapping. |
|
|