|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap toolbox.dao.IgnoreKeyCaseMap
public class IgnoreKeyCaseMap
Conveniece class to retrieve values from a HashMap using case insensitive keys.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
IgnoreKeyCaseMap()
Default constructor |
|
IgnoreKeyCaseMap(int capacity)
Construct a new Map with the given capacity. |
|
IgnoreKeyCaseMap(java.util.Map m)
Construct a new map with the mappings of the given map. |
Method Summary | |
---|---|
boolean |
containsKey(java.lang.Object key)
Returns true if this map contains a mapping for the specified key ignoring the key case. |
java.lang.Object |
get(java.lang.Object key)
Return a value from this map ignoring the key case. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Associates the specified value with the specified key in this map ignoring the key case. |
java.lang.Object |
remove(java.lang.Object key)
Removes the mapping for this key from this map if it is present ignoring the key case. |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsValue, entrySet, isEmpty, keySet, putAll, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public IgnoreKeyCaseMap()
public IgnoreKeyCaseMap(int capacity)
capacity
- Initial Map capacitypublic IgnoreKeyCaseMap(java.util.Map m)
m
- Map whose mappings must be placed in this map.Method Detail |
---|
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
get
in class java.util.HashMap
key
- Object containing key.
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
put
in class java.util.HashMap
key
- String containing key to associate value with.value
- Object containing value.
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
remove
in class java.util.HashMap
key
- Key whose mapping will be removed.
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
containsKey
in class java.util.HashMap
key
- key whose presence in this map is to be tested.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |