public class CaseInsensitiveMap<V>
extends java.util.AbstractMap<java.lang.String,V>
implements java.util.Map<java.lang.String,V>, java.lang.Cloneable, java.io.Serializable
Map.
All keys are expected to be strings (though null is a valid key). The map remembers
the case of the last key to be set, and Map.keySet() or Map.entrySet() will
contain case-sensitive keys. However, querying and contains testing is case insensitive.
| Constructor and Description |
|---|
CaseInsensitiveMap()
Instantiates a new instance of the
CaseInsensitiveMap class. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<java.lang.String,V>> |
entrySet() |
V |
get(java.lang.Object key) |
java.util.Set<java.lang.String> |
keySet() |
static <V> CaseInsensitiveMap<V> |
of(java.util.Map<java.lang.String,V> map)
Returns an instance of
CaseInsensitiveMap using the contents of another map. |
V |
put(java.lang.String key,
V value) |
V |
remove(java.lang.Object key) |
java.util.Collection<V> |
values() |
clone, equals, hashCode, isEmpty, putAll, size, toStringpublic CaseInsensitiveMap()
CaseInsensitiveMap class.public static <V> CaseInsensitiveMap<V> of(java.util.Map<java.lang.String,V> map)
CaseInsensitiveMap using the contents of another map.map - the map to create the CaseInsensitiveMap fromCaseInsensitiveMappublic boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public V get(java.lang.Object key)
public V remove(java.lang.Object key)
public void clear()
public java.util.Set<java.lang.String> keySet()
public java.util.Collection<V> values()