Package com.im.commons.util
Class AbstractCaseInsensitiveMap<V>
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,V>
-
- com.im.commons.util.AbstractCaseInsensitiveMap<V>
-
- Type Parameters:
V
- values type
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map<java.lang.String,V>
- Direct Known Subclasses:
CaseInsensitiveMap
,ImmutableCaseInsensitiveMap
public abstract class AbstractCaseInsensitiveMap<V> extends java.util.AbstractMap<java.lang.String,V> implements java.io.Serializable
This Map is a delegate that transforms all keys to lowercase (provided the key is not null). The keys are changed to inner classAbstractCaseInsensitiveMap.CaseInsensitiveKey
which does case-insensitive comparison. On return it again unwraps keys.- Since:
- 17.1.9
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
boolean
isEmpty()
java.util.Set<java.lang.String>
keySet()
V
put(java.lang.String key, V value)
V
remove(java.lang.Object key)
int
size()
java.util.Collection
values()
-
-
-
Method Detail
-
clear
public void clear()
-
containsKey
public boolean containsKey(java.lang.Object key)
-
containsValue
public boolean containsValue(java.lang.Object value)
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,V>> entrySet()
-
get
public V get(java.lang.Object key)
-
isEmpty
public boolean isEmpty()
-
keySet
public java.util.Set<java.lang.String> keySet()
-
remove
public V remove(java.lang.Object key)
-
size
public int size()
-
-