Package io.github.connellite.collections
Class LinkedCaseInsensitiveMap<V>
- Type Parameters:
V- value type
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,V>
public class LinkedCaseInsensitiveMap<V>
extends LinkedHashMap<String,V>
implements Serializable, Cloneable
LinkedHashMap with String keys compared case-insensitively.
Preserves insertion order of canonical keys.- See Also:
-
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
ConstructorsConstructorDescriptionLinkedCaseInsensitiveMap(int initialCapacity) LinkedCaseInsensitiveMap(int initialCapacity, float loadFactor) LinkedCaseInsensitiveMap(int initialCapacity, float loadFactor, Locale locale) LinkedCaseInsensitiveMap(int initialCapacity, float loadFactor, Locale locale, boolean accessOrder) LinkedCaseInsensitiveMap(int initialCapacity, Locale locale) LinkedCaseInsensitiveMap(int initialCapacity, Locale locale, boolean accessOrder) LinkedCaseInsensitiveMap(Locale locale) LinkedCaseInsensitiveMap(Map<? extends String, ? extends V> m) LinkedCaseInsensitiveMap(Map<? extends String, ? extends V> m, Locale locale) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()computeIfAbsent(String key, Function<? super String, ? extends V> mappingFunction) computeIfPresent(String key, BiFunction<? super String, ? super V, ? extends V> remappingFunction) booleancontainsKey(Object key) protected StringconvertKey(String key) entrySet()booleanvoidforEach(BiConsumer<? super String, ? super V> action) getOrDefault(Object key, V defaultValue) inthashCode()keySet()voidputIfAbsent(String key, V value) booleanbooleanvalues()Methods inherited from class java.util.LinkedHashMap
containsValue, removeEldestEntry, replaceAllMethods inherited from class java.util.AbstractMap
toString
-
Constructor Details
-
LinkedCaseInsensitiveMap
public LinkedCaseInsensitiveMap() -
LinkedCaseInsensitiveMap
public LinkedCaseInsensitiveMap(int initialCapacity) -
LinkedCaseInsensitiveMap
public LinkedCaseInsensitiveMap(int initialCapacity, float loadFactor) -
LinkedCaseInsensitiveMap
-
LinkedCaseInsensitiveMap
-
LinkedCaseInsensitiveMap
-
LinkedCaseInsensitiveMap
-
LinkedCaseInsensitiveMap
public LinkedCaseInsensitiveMap(int initialCapacity, float loadFactor, Locale locale, boolean accessOrder) -
LinkedCaseInsensitiveMap
-
LinkedCaseInsensitiveMap
-
-
Method Details
-
convertKey
-
containsKey
- Specified by:
containsKeyin interfaceMap<String,V> - Overrides:
containsKeyin classHashMap<String,V>
-
get
-
getOrDefault
- Specified by:
getOrDefaultin interfaceMap<String,V> - Overrides:
getOrDefaultin classLinkedHashMap<String,V>
-
put
-
putAll
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceMap<String,V> - Overrides:
putIfAbsentin classHashMap<String,V>
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceMap<String,V> - Overrides:
computeIfAbsentin classHashMap<String,V>
-
computeIfPresent
public V computeIfPresent(String key, BiFunction<? super String, ? super V, ? extends V> remappingFunction) - Specified by:
computeIfPresentin interfaceMap<String,V> - Overrides:
computeIfPresentin classHashMap<String,V>
-
compute
-
merge
-
remove
-
remove
-
replace
-
replace
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
forEach
-
clone
-
equals
-
hashCode
public int hashCode()
-