Package org.mockserver.collections
Class CaseInsensitiveRegexHashMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<NottableString,NottableString>
-
- org.mockserver.collections.CaseInsensitiveRegexHashMap
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<NottableString,NottableString>
public class CaseInsensitiveRegexHashMap extends LinkedHashMap<NottableString,NottableString> implements Map<NottableString,NottableString>
Map that uses case insensitive regex expression matching for keys and values- Author:
- jamesdbloom
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description CaseInsensitiveRegexHashMap()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsAll(CaseInsensitiveRegexHashMap subSet)
boolean
containsKey(Object key)
boolean
containsKeyValue(String key, String value)
boolean
containsKeyValue(NottableString key, NottableString value)
boolean
containsValue(Object value)
NottableString
get(Object key)
static CaseInsensitiveRegexHashMap
hashMap(String[]... keyAndValues)
static CaseInsensitiveRegexHashMap
hashMap(NottableString[]... keyAndValues)
NottableString
put(String key, String value)
NottableString
put(NottableString key, NottableString value)
NottableString
remove(Object key)
-
Methods inherited from class java.util.LinkedHashMap
clear, entrySet, forEach, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
hashMap
public static CaseInsensitiveRegexHashMap hashMap(String[]... keyAndValues)
-
hashMap
public static CaseInsensitiveRegexHashMap hashMap(NottableString[]... keyAndValues)
-
containsAll
public boolean containsAll(CaseInsensitiveRegexHashMap subSet)
-
containsKeyValue
public boolean containsKeyValue(NottableString key, NottableString value)
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<NottableString,NottableString>
- Overrides:
containsKey
in classHashMap<NottableString,NottableString>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<NottableString,NottableString>
- Overrides:
containsValue
in classLinkedHashMap<NottableString,NottableString>
-
get
public NottableString get(Object key)
- Specified by:
get
in interfaceMap<NottableString,NottableString>
- Overrides:
get
in classLinkedHashMap<NottableString,NottableString>
-
put
public NottableString put(String key, String value)
-
put
public NottableString put(NottableString key, NottableString value)
- Specified by:
put
in interfaceMap<NottableString,NottableString>
- Overrides:
put
in classHashMap<NottableString,NottableString>
-
remove
public NottableString remove(Object key)
- Specified by:
remove
in interfaceMap<NottableString,NottableString>
- Overrides:
remove
in classHashMap<NottableString,NottableString>
-
-