Package io.inversion.utils
Class LinkedCaseInsensitiveMap<V>
java.lang.Object
io.inversion.utils.LinkedCaseInsensitiveMap<V>
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,V>
public class LinkedCaseInsensitiveMap<V>
extends Object
implements Map<String,V>, Serializable, Cloneable
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new LinkedCaseInsensitiveMap that stores case-insensitive keys according to the default Locale (by default in lower case).LinkedCaseInsensitiveMap(int expectedSize) LinkedCaseInsensitiveMap(int expectedSize, Locale locale) LinkedCaseInsensitiveMap(Locale locale) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()computeIfAbsent(String key, Function<? super String, ? extends V> mappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) protected StringconvertKey(String key) entrySet()booleanReturn the locale used by thisLinkedCaseInsensitiveMap.getOrDefault(Object key, V defaultValue) inthashCode()booleanisEmpty()keySet()voidputIfAbsent(String key, V value) protected booleanremoveEldestEntry(Map.Entry<String, V> eldest) intsize()toString()values()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfPresent, forEach, merge, remove, replace, replace, replaceAll
-
Constructor Details
-
LinkedCaseInsensitiveMap
public LinkedCaseInsensitiveMap()Create a new LinkedCaseInsensitiveMap that stores case-insensitive keys according to the default Locale (by default in lower case).- See Also:
-
LinkedCaseInsensitiveMap
-
LinkedCaseInsensitiveMap
public LinkedCaseInsensitiveMap(int expectedSize) -
LinkedCaseInsensitiveMap
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,V>
-
get
-
getOrDefault
- Specified by:
getOrDefaultin interfaceMap<String,V>
-
put
-
putAll
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceMap<String,V>
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceMap<String,V>
-
remove
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
clone
-
equals
-
hashCode
public int hashCode() -
toString
-
getLocale
Return the locale used by thisLinkedCaseInsensitiveMap. Used for case-insensitive key conversion.- Since:
- 4.3.10
- See Also:
-
convertKey
-
removeEldestEntry
-