Package org.h2.value
Class CaseInsensitiveMap<V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.String,V>
-
- org.h2.value.CaseInsensitiveMap<V>
-
- Type Parameters:
V
- the value type
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.String,V>
public class CaseInsensitiveMap<V> extends java.util.HashMap<java.lang.String,V>
A hash map with a case-insensitive string key.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description CaseInsensitiveMap()
Creates new instance of case-insensitive map.CaseInsensitiveMap(int initialCapacity)
Creates new instance of case-insensitive map with specified initial capacity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(java.lang.Object key)
V
get(java.lang.Object key)
V
put(java.lang.String key, V value)
V
putIfAbsent(java.lang.String key, V value)
V
remove(java.lang.Object key)
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putAll, remove, replace, replace, replaceAll, size, values
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CaseInsensitiveMap
public CaseInsensitiveMap()
Creates new instance of case-insensitive map.
-
CaseInsensitiveMap
public CaseInsensitiveMap(int initialCapacity)
Creates new instance of case-insensitive map with specified initial capacity.- Parameters:
initialCapacity
- the initial capacity
-
-