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
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
|
Method Summary |
void |
clear()
|
boolean |
containsAll(CaseInsensitiveRegexMultiMap subSet)
|
boolean |
containsKey(Object key)
|
boolean |
containsKeyValue(NottableString key,
NottableString value)
|
boolean |
containsKeyValue(String key,
String value)
|
boolean |
containsValue(Object value)
|
static Map.Entry<NottableString,NottableString> |
entry(String key,
String value)
|
List<Map.Entry<NottableString,NottableString>> |
entryList()
|
Set<Map.Entry<NottableString,NottableString>> |
entrySet()
|
NottableString |
get(Object key)
|
List<NottableString> |
getAll(NottableString key)
|
List<NottableString> |
getAll(String key)
|
boolean |
isEmpty()
|
Set<NottableString> |
keySet()
|
static CaseInsensitiveRegexMultiMap |
multiMap(NottableString[]... keyAndValues)
|
static CaseInsensitiveRegexMultiMap |
multiMap(String[]... keyAndValues)
|
List<NottableString> |
put(NottableString key,
List<NottableString> values)
|
NottableString |
put(NottableString key,
NottableString value)
|
List<NottableString> |
put(String key,
List<String> values)
|
NottableString |
put(String key,
String value)
|
void |
putAll(Map<? extends NottableString,? extends NottableString> map)
|
void |
putValuesForNewKeys(CaseInsensitiveRegexMultiMap multiMap)
|
NottableString |
remove(Object key)
|
List<NottableString> |
removeAll(NottableString key)
|
List<NottableString> |
removeAll(String key)
|
int |
size()
|
Collection<NottableString> |
values()
|
CaseInsensitiveRegexMultiMap
public CaseInsensitiveRegexMultiMap()
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(String key,
String value)
containsKeyValue
public boolean containsKeyValue(NottableString key,
NottableString value)
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue in interface Map<NottableString,NottableString>
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey in interface Map<NottableString,NottableString>
get
public NottableString get(Object key)
- Specified by:
get in interface Map<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 interface Map<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 interface Map<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 interface Map<NottableString,NottableString>
clear
public void clear()
- Specified by:
clear in interface Map<NottableString,NottableString>
keySet
public Set<NottableString> keySet()
- Specified by:
keySet in interface Map<NottableString,NottableString>
values
public Collection<NottableString> values()
- Specified by:
values in interface Map<NottableString,NottableString>
entrySet
public Set<Map.Entry<NottableString,NottableString>> entrySet()
- Specified by:
entrySet in interface Map<NottableString,NottableString>
entryList
public List<Map.Entry<NottableString,NottableString>> entryList()
size
public int size()
- Specified by:
size in interface Map<NottableString,NottableString>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Map<NottableString,NottableString>
Copyright © 2017. All rights reserved.