|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mayo.bsi.ngsportal.shared.CaseInsensitiveMap<V>
V - The class of the Map's valuespublic class CaseInsensitiveMap<V>
A map class for Mapping SQL Strings (as keys) to values, since SQL Strings are case insensitive, and normal Maps are not
@author Gregory Dougherty
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
CaseInsensitiveMap(Map<String,V> parentMap)
Create a Case-insensitive Map, that uses the sorting, etc. |
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<String,V>> |
entrySet()
Returns the keys that were passed in, rather than the case insensitive keys actually used. |
V |
get(Object key)
|
Map<V,String> |
invertMap()
Returns a map that goes from the value to the key. |
boolean |
isEmpty()
|
Set<String> |
keySet()
Returns the keys that were passed in, rather than the case insensitive keys actually used. |
V |
put(String key,
V value)
|
void |
putAll(Map<? extends String,? extends V> m)
|
V |
remove(Object key)
|
int |
size()
|
Collection<V> |
values()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public CaseInsensitiveMap(Map<String,V> parentMap)
Map Contract, because this constructor takes
ownership of the passed in Map, rather than just copying it, which is what
it's supposed to do. If parentMap is a HashMap, it will be cloned, if it is a
TreeMap it will be copied as a TreeMap, in which case the contract will be fulfilled.
parentMap - Map that becomes the basis of this Map, including for things like sorting| Method Detail |
|---|
public int size()
size in interface Map<String,V>public boolean isEmpty()
isEmpty in interface Map<String,V>public boolean containsKey(Object key)
containsKey in interface Map<String,V>public boolean containsValue(Object value)
containsValue in interface Map<String,V>public V get(Object key)
get in interface Map<String,V>
public V put(String key,
V value)
put in interface Map<String,V>public V remove(Object key)
remove in interface Map<String,V>public void putAll(Map<? extends String,? extends V> m)
putAll in interface Map<String,V>public void clear()
clear in interface Map<String,V>public Set<String> keySet()
keySet in interface Map<String,V>public Collection<V> values()
values in interface Map<String,V>public Set<Map.Entry<String,V>> entrySet()
entrySet in interface Map<String,V>public Map<V,String> invertMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||