Package gnu.kawa.util
Class HashNode<K,V>
- java.lang.Object
-
- java.util.AbstractMap.SimpleEntry<K,V>
-
- gnu.kawa.util.HashNode<K,V>
-
- All Implemented Interfaces:
Serializable
,Map.Entry<K,V>
public class HashNode<K,V> extends AbstractMap.SimpleEntry<K,V> implements Map.Entry<K,V>
An entry in aGeneralHashTable
. This is a public class to allow overriding.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Implements the general Map.Entry specification.V
get(V defaultValue)
-
Methods inherited from class java.util.AbstractMap.SimpleEntry
getKey, getValue, hashCode, setValue, toString
-
-
-
-
Method Detail
-
equals
public boolean equals(Object o)
Implements the general Map.Entry specification. But note that a GeneralHashTable subclass may overridematches
, so it no longer uses equals, in which case it won't be consistent with this method, unless it is overridden.
-
-