Package org.jxls.jdbc
Class CaseInsensitiveHashMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
This class is taken from Apache Commons DbUtils library (https://commons.apache.org/proper/commons-dbutils/)
A Map that converts all keys to lowercase Strings for case insensitive
lookups. This is needed for the toMap() implementation because
databases don't consistently handle the casing of column names.
The keys are stored as they are given [BUG #DBUTILS-34], so we maintain an internal mapping from lowercase keys to the real keys in order to achieve the case insensitive lookup.
Note: This implementation does not allow null
for key, whereas LinkedHashMap does, because of the code:
key.toString().toLowerCase()
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, isEmpty, merge, putIfAbsent, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, hashCode, isEmpty, merge, putIfAbsent, remove, replace, replace, size
-
Constructor Details
-
CaseInsensitiveHashMap
public CaseInsensitiveHashMap()
-
-
Method Details
-
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object> - Overrides:
containsKeyin classHashMap<String,Object>
-
get
-
put
-
putAll
-
remove
-