public class IfxMap<V>
extends java.util.HashMap<java.lang.String,V>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
preserveCase |
| Constructor and Description |
|---|
IfxMap(boolean preserveCase)
Constructor for a map that can be used to support Informix's DELIMIDENT
feature for case-sensitive vs case-insensitive JDBC type maps.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Overrides
HashMap.clone() to ensure the case-sensitive nature of
this map is preserved. |
boolean |
containsKey(java.lang.Object key)
Overrides
HashMap.containsKey(Object) to perform a
case-insensitive search of the keys of this map if it is not
case-sensitive. |
V |
get(java.lang.Object key)
Overrides
HashMap.get(Object) to perform a case-insensitive
search of the keys if this map is not case-sensitive. |
boolean |
isCaseSensitive() |
V |
put(java.lang.String key,
V value)
Overrides
HashMap.put(Object, Object) by converting the key to
lower-case if this map is case-insensitive (i.e. |
void |
putAll(java.util.Map<? extends java.lang.String,? extends V> m)
Overrides
HashMap.putAll(Map) by converting the keys of each
entry in the specified map to lower-case if this map is case-insensitive
(i.e. |
V |
remove(java.lang.Object key)
Overrides
HashMap.remove(Object) by converting the key to
lower-case if this map is case-insensitive (i.e. |
clear, containsValue, entrySet, isEmpty, keySet, size, valuespublic IfxMap(boolean preserveCase)
preserveCase - if set to true the case all this map's keys are
preserved, if false all keys are converting to
lower-case when modifying or searching this mappublic boolean isCaseSensitive()
public java.lang.Object clone()
HashMap.clone() to ensure the case-sensitive nature of
this map is preserved.clone in class java.util.HashMap<java.lang.String,V>HashMap.clone()public boolean containsKey(java.lang.Object key)
HashMap.containsKey(Object) to perform a
case-insensitive search of the keys of this map if it is not
case-sensitive. This is achieved by converting the key to lower-case
before searching this map.public V get(java.lang.Object key)
HashMap.get(Object) to perform a case-insensitive
search of the keys if this map is not case-sensitive. This is achieved by
converting the key to lower-case before searching this map.public V put(java.lang.String key, V value)
HashMap.put(Object, Object) by converting the key to
lower-case if this map is case-insensitive (i.e. this map does not
preserve the case of the keys) before putting the key-value pair into
this map.public void putAll(java.util.Map<? extends java.lang.String,? extends V> m)
HashMap.putAll(Map) by converting the keys of each
entry in the specified map to lower-case if this map is case-insensitive
(i.e. this map does not preserve the case of the keys) before putting the
entry into this map.public V remove(java.lang.Object key)
HashMap.remove(Object) by converting the key to
lower-case if this map is case-insensitive (i.e. this map does not
preserve the case of the keys) before calling the remove method of the
super class.