T-Plan Robot Enterprise 5.0.1
Build No. 5.0.1-20190308.1

com.tplan.robot.util
Class CaseTolerantHashMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by com.tplan.robot.util.CaseTolerantHashMap<K,V>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<K,V>

public class CaseTolerantHashMap<K,V>
extends java.util.HashMap<K,V>

Case tolerant hash map. If the key is a String, the map is able to deliver the value even if the key is specified in an incorrect character case (for example "Key" instead of "key"). As this is a low performance map it should be used only for maps of small size.

See Also:
Serialized Form

T-Plan Robot Enterprise, (C) 2009-2019 T-Plan Limited. All rights reserved.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
CaseTolerantHashMap()
           
CaseTolerantHashMap(java.util.Map<? extends K,? extends V> m)
           
 
Method Summary
 boolean containsKey(java.lang.Object key)
           
 V get(java.lang.Object key)
           
 V remove(java.lang.Object key)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsValue, 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
equals, hashCode
 

Constructor Detail

CaseTolerantHashMap

public CaseTolerantHashMap(java.util.Map<? extends K,? extends V> m)

CaseTolerantHashMap

public CaseTolerantHashMap()
Method Detail

get

public V get(java.lang.Object key)
Specified by:
get in interface java.util.Map<K,V>
Overrides:
get in class java.util.HashMap<K,V>

remove

public V remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map<K,V>
Overrides:
remove in class java.util.HashMap<K,V>

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map<K,V>
Overrides:
containsKey in class java.util.HashMap<K,V>

T-Plan Robot Enterprise 5.0.1
Build No. 5.0.1-20190308.1