Package com.sun.identity.common
Class CaseInsensitiveHashMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- com.sun.identity.common.CaseInsensitiveHashMap<K,V>
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<K,V>
- Direct Known Subclasses:
AMHashMap
public class CaseInsensitiveHashMap<K,V> extends HashMap<K,V>
A case insensitive hash map with case preservation. If key is a String, a case insensitive hash code is used for hashing but original case of the key is preserved.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description CaseInsensitiveHashMap()CaseInsensitiveHashMap(int initialCapacity)CaseInsensitiveHashMap(int initialCapacity, float loadFactor)CaseInsensitiveHashMap(Map t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(Object key)SetentrySet()Returns set view of mappings in this mapVget(Object key)Set<K>keySet()Vput(K key, V value)voidputAll(Map<? extends K,? extends V> map)Vremove(Object key)-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, forEach, getOrDefault, isEmpty, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
CaseInsensitiveHashMap
public CaseInsensitiveHashMap()
-
CaseInsensitiveHashMap
public CaseInsensitiveHashMap(int initialCapacity)
-
CaseInsensitiveHashMap
public CaseInsensitiveHashMap(int initialCapacity, float loadFactor)
-
CaseInsensitiveHashMap
public CaseInsensitiveHashMap(Map t)
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>- Overrides:
containsKeyin classHashMap<K,V>
-
entrySet
public Set entrySet()
Returns set view of mappings in this map
-
-