Class StringHashMap<V>

java.lang.Object
java.util.AbstractMap<Object,V>
java.util.HashMap<Object,V>
groovyx.net.http.StringHashMap<V>
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,V>

class StringHashMap<V> extends HashMap<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.