Package com.im.commons.util
Class CaseInsensitiveMap<V>
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,V>
-
- com.im.commons.util.AbstractCaseInsensitiveMap<V>
-
- com.im.commons.util.CaseInsensitiveMap<V>
-
- Type Parameters:
V
- value type.
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map<java.lang.String,V>
public final class CaseInsensitiveMap<V> extends AbstractCaseInsensitiveMap<V>
This Map is a delegate that transforms all keys to lowercase. Null keys are allowed as that the original backing store (a hashmap by default) supports them. The object delegates on a LinkedHashMap, but changes all keys toAbstractCaseInsensitiveMap.CaseInsensitiveKey
which does case-insensitive comparison. On return it again unwraps keys.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CaseInsensitiveMap()
CaseInsensitiveMap(int size)
CaseInsensitiveMap(int size, float loadFactor)
CaseInsensitiveMap(java.util.Map<java.lang.String,V> initial)
-
Method Summary
-
Methods inherited from class com.im.commons.util.AbstractCaseInsensitiveMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, remove, size, values
-
-
-
-
Constructor Detail
-
CaseInsensitiveMap
public CaseInsensitiveMap()
-
CaseInsensitiveMap
public CaseInsensitiveMap(int size)
-
CaseInsensitiveMap
public CaseInsensitiveMap(int size, float loadFactor)
-
CaseInsensitiveMap
public CaseInsensitiveMap(java.util.Map<java.lang.String,V> initial)
-
-