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 AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, valuesMethods inherited from class 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:
containsKeyin interfaceMap<Object,V> - Overrides:
containsKeyin classHashMap<Object,V>
-
get
-
put
-
putAll
-
remove
-