| java.util.HashMap edu.indiana.lib.twinpeaks.util.CaseBlindHashMap
CaseBlindHashMap | public class CaseBlindHashMap extends HashMap (Code) | | CaseBlindHashMap - a HashMap extension, using String s as
key values.
Internally, keys are case insensitive: ABC = abc .
Two methods have been added to facilitate working with Sets of key strings.
See stringKeySet() and stringKeyIterator() .
|
Inner Class :public static class CaseBlindString | |
CaseBlindHashMap | public CaseBlindHashMap()(Code) | | Constructors
|
CaseBlindHashMap | public CaseBlindHashMap(int initCap)(Code) | | |
CaseBlindHashMap | public CaseBlindHashMap(int initCap, float loadFactor)(Code) | | |
containsKey | public boolean containsKey(String key)(Code) | | Does the map contain this key?
Parameters: key - The key to look up true If the key is present in the map |
get | public Object get(String key)(Code) | | Fetch a value by name - null keys are not supported
Parameters: key - The key to look up The associated value object |
put | public void put(String key, Object value)(Code) | | Add the key/value pair to the map - null values are not supported
Parameters: key - The key name Parameters: value - The object to store |
remove | public void remove(String key)(Code) | | Remove a key/value pair from this map
Parameters: key - Non-null key to remove |
stringKeyIterator | public Iterator stringKeyIterator()(Code) | | Get an Iterator to the String based key set
An iterator to the key set |
stringKeySet | public Set stringKeySet()(Code) | | Get the set of keys contained in this map. Keys values are returned as
simple String s (not the CaseBlindString s used
internally).
This is accopmlished by making a copy of the original map - modifications
made to this copy are not reflected in the original.
The set of keys |
|
|