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 booleancontainsAll(CaseInsensitiveRegexHashMap subSet)booleancontainsKey(Object key)booleancontainsKeyValue(String key, String value)booleancontainsKeyValue(NottableString key, NottableString value)booleancontainsValue(Object value)NottableStringget(Object key)static CaseInsensitiveRegexHashMaphashMap(String[]... keyAndValues)static CaseInsensitiveRegexHashMaphashMap(NottableString[]... keyAndValues)NottableStringput(String key, String value)NottableStringput(NottableString key, NottableString value)NottableStringremove(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:
containsKeyin interfaceMap<NottableString,NottableString>- Overrides:
containsKeyin classHashMap<NottableString,NottableString>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<NottableString,NottableString>- Overrides:
containsValuein classLinkedHashMap<NottableString,NottableString>
-
get
public NottableString get(Object key)
- Specified by:
getin interfaceMap<NottableString,NottableString>- Overrides:
getin classLinkedHashMap<NottableString,NottableString>
-
put
public NottableString put(String key, String value)
-
put
public NottableString put(NottableString key, NottableString value)
- Specified by:
putin interfaceMap<NottableString,NottableString>- Overrides:
putin classHashMap<NottableString,NottableString>
-
remove
public NottableString remove(Object key)
- Specified by:
removein interfaceMap<NottableString,NottableString>- Overrides:
removein classHashMap<NottableString,NottableString>
-
-