Class CaseInsensitiveHashMap<V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,V>
io.github.connellite.collections.CaseInsensitiveHashMap<V>
Type Parameters:
V - value type
All Implemented Interfaces:
Serializable, Cloneable, Map<String,V>

public class CaseInsensitiveHashMap<V> extends HashMap<String,V> implements Serializable, Cloneable
HashMap with String keys compared case-insensitively. The key set and entries expose the currently stored spelling (last successful put wins for that logical key).

Like HashMap, allows a single null key; it is not folded by case and is omitted from the internal case-folding index. For speed and stable behavior, the default locale used to fold case is Locale.ROOT (override via CaseInsensitiveHashMap(Locale)).

See Also: