Class CaseInsensitiveKeyMap<V>
- Type Parameters:
V
- Type of values placed in this Map.
A Map implementation that uses case-insensitive (using
Locale.ENGLISH
) strings as keys.
Keys must be instances of String
. Note that this means that null
keys are not permitted.
This implementation is not thread-safe.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractMap
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
Methods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
CaseInsensitiveKeyMap
public CaseInsensitiveKeyMap()
-
-
Method Details
-
get
-
put
-
putAll
Use this method with caution. If the input Map contains duplicate keys when the keys are compared in a case-insensitive manner then some values will be lost when inserting via this method.
-
containsKey
- Specified by:
containsKey
in interfaceMap<String,
V> - Overrides:
containsKey
in classAbstractMap<String,
V>
-
remove
-
entrySet
-