Class CaseInsensitiveStringMap<V>
java.lang.Object
de.hybris.platform.util.collections.CaseInsensitiveStringMap<V>
- All Implemented Interfaces:
ConcurrentMap<String,,V> Map<String,V>
Special version of
ConcurrentHashMap which pretends to map strings to objects but treats them
case-insensitively!-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCaseInsensitiveStringMap(int initialCapacity) CaseInsensitiveStringMap(int initialCapacity, float loadFactor) CaseInsensitiveStringMap(int initialCapacity, float loadFactor, int concurrencyLevel) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()final VbooleanisEmpty()keySet()voidputIfAbsent(String key, V value) booleanbooleanintsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
Constructor Details
-
CaseInsensitiveStringMap
public CaseInsensitiveStringMap() -
CaseInsensitiveStringMap
public CaseInsensitiveStringMap(int initialCapacity) -
CaseInsensitiveStringMap
public CaseInsensitiveStringMap(int initialCapacity, float loadFactor) -
CaseInsensitiveStringMap
public CaseInsensitiveStringMap(int initialCapacity, float loadFactor, int concurrencyLevel) -
CaseInsensitiveStringMap
-
-
Method Details
-
get
-
put
-
remove
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,V>
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceConcurrentMap<String,V> - Specified by:
putIfAbsentin interfaceMap<String,V>
-
remove
-
replace
-
replace
-