org.mockserver.collections
Class CaseInsensitiveRegexHashMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<NottableString,NottableString>
              extended by 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,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
CaseInsensitiveRegexHashMap()
           
 
Method Summary
 boolean containsAll(CaseInsensitiveRegexHashMap subSet)
           
 boolean containsKey(Object key)
           
 boolean containsKeyValue(NottableString key, NottableString value)
           
 boolean containsKeyValue(String key, String value)
           
 boolean containsValue(Object value)
           
 NottableString get(Object key)
           
static CaseInsensitiveRegexHashMap hashMap(NottableString[]... keyAndValues)
           
static CaseInsensitiveRegexHashMap hashMap(String[]... keyAndValues)
           
 NottableString put(NottableString key, NottableString value)
           
 NottableString put(String key, String value)
           
 NottableString remove(Object key)
           
 
Methods inherited from class java.util.LinkedHashMap
clear, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, entrySet, isEmpty, keySet, putAll, size, values
 
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, entrySet, equals, hashCode, isEmpty, keySet, putAll, size, values
 

Constructor Detail

CaseInsensitiveRegexHashMap

public CaseInsensitiveRegexHashMap()
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(String key,
                                String value)

containsKeyValue

public boolean containsKeyValue(NottableString key,
                                NottableString value)

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<NottableString,NottableString>
Overrides:
containsKey in class HashMap<NottableString,NottableString>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<NottableString,NottableString>
Overrides:
containsValue in class LinkedHashMap<NottableString,NottableString>

get

public NottableString get(Object key)
Specified by:
get in interface Map<NottableString,NottableString>
Overrides:
get in class LinkedHashMap<NottableString,NottableString>

put

public NottableString put(String key,
                          String value)

put

public NottableString put(NottableString key,
                          NottableString value)
Specified by:
put in interface Map<NottableString,NottableString>
Overrides:
put in class HashMap<NottableString,NottableString>

remove

public NottableString remove(Object key)
Specified by:
remove in interface Map<NottableString,NottableString>
Overrides:
remove in class HashMap<NottableString,NottableString>


Copyright © 2016. All rights reserved.