Package org.mockserver.collections
Class CaseInsensitiveRegexMultiMap
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.collections.CaseInsensitiveRegexMultiMap
-
- All Implemented Interfaces:
Map<NottableString,NottableString>
public class CaseInsensitiveRegexMultiMap extends ObjectWithReflectiveEqualsHashCodeToString implements Map<NottableString,NottableString>
MultiMap that uses case insensitive regex expression matching for keys and values- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description CaseInsensitiveRegexMultiMap()
-
Method Summary
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
multiMap
public static CaseInsensitiveRegexMultiMap multiMap(String[]... keyAndValues)
-
multiMap
public static CaseInsensitiveRegexMultiMap multiMap(NottableString[]... keyAndValues)
-
entry
public static Map.Entry<NottableString,NottableString> entry(String key, String value)
-
containsAll
public boolean containsAll(CaseInsensitiveRegexMultiMap subSet)
-
containsKeyValue
public boolean containsKeyValue(NottableString key, NottableString value)
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<NottableString,NottableString>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<NottableString,NottableString>
-
get
public NottableString get(Object key)
- Specified by:
get
in interfaceMap<NottableString,NottableString>
-
getAll
public List<NottableString> getAll(String key)
-
getAll
public List<NottableString> getAll(NottableString key)
-
put
public NottableString put(String key, String value)
-
put
public NottableString put(NottableString key, NottableString value)
- Specified by:
put
in interfaceMap<NottableString,NottableString>
-
put
public List<NottableString> put(String key, List<String> values)
-
put
public List<NottableString> put(NottableString key, List<NottableString> values)
-
putValuesForNewKeys
public void putValuesForNewKeys(CaseInsensitiveRegexMultiMap multiMap)
-
remove
public NottableString remove(Object key)
- Specified by:
remove
in interfaceMap<NottableString,NottableString>
-
removeAll
public List<NottableString> removeAll(NottableString key)
-
removeAll
public List<NottableString> removeAll(String key)
-
putAll
public void putAll(Map<? extends NottableString,? extends NottableString> map)
- Specified by:
putAll
in interfaceMap<NottableString,NottableString>
-
clear
public void clear()
- Specified by:
clear
in interfaceMap<NottableString,NottableString>
-
keySet
public Set<NottableString> keySet()
- Specified by:
keySet
in interfaceMap<NottableString,NottableString>
-
values
public Collection<NottableString> values()
- Specified by:
values
in interfaceMap<NottableString,NottableString>
-
entrySet
public Set<Map.Entry<NottableString,NottableString>> entrySet()
- Specified by:
entrySet
in interfaceMap<NottableString,NottableString>
-
entryList
public List<Map.Entry<NottableString,NottableString>> entryList()
-
size
public int size()
- Specified by:
size
in interfaceMap<NottableString,NottableString>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceMap<NottableString,NottableString>
-
-