org.mockserver.collections
Class CaseInsensitiveRegexHashMap<V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<NottableString,V>
              extended by org.mockserver.collections.CaseInsensitiveRegexHashMap<V>
All Implemented Interfaces:
Serializable, Cloneable, Map<NottableString,V>

public class CaseInsensitiveRegexHashMap<V>
extends LinkedHashMap<NottableString,V>
implements Map<NottableString,V>

Map that uses case insensitive regex expression matching for keys

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<String> subSet)
           
 boolean containsKey(Object key)
           
 boolean containsKeyValue(NottableString key, String value)
           
 V get(Object key)
           
 Collection<V> getAll(Object key)
           
 V put(String key, V value)
           
 V remove(Object key)
           
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, entrySet, isEmpty, keySet, put, 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, containsValue, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, size, values
 

Constructor Detail

CaseInsensitiveRegexHashMap

public CaseInsensitiveRegexHashMap()
Method Detail

containsAll

public boolean containsAll(CaseInsensitiveRegexHashMap<String> subSet)

containsKeyValue

public boolean containsKeyValue(NottableString key,
                                String value)

put

public V put(String key,
             V value)

containsKey

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

get

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

getAll

public Collection<V> getAll(Object key)

remove

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


Copyright © 2015. All rights reserved.