Package groovyx.net.http
Class StringHashMap<V>
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
V>
Converts keys to strings, mainly to normalize the difference between
GString and String keys since a GString will not produce the same hashcode as
its equivalent string.
Basically, any given key will always be coerced to a String, and any retrieved
key (either via
HashMap.keySet()
or HashMap.entrySet()
will always be a
String.-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
StringHashMap
public StringHashMap() -
StringHashMap
-
-
Method Details
-
containsKey
- Specified by:
containsKey
in interfaceMap<Object,
V> - Overrides:
containsKey
in classHashMap<Object,
V>
-
get
-
put
-
putAll
-
remove
-