gnu.kawa.util
Class HashNode
java.lang.Object
gnu.kawa.util.HashNode
- All Implemented Interfaces:
- java.util.Map.Entry
public class HashNode
- extends java.lang.Object
- implements java.util.Map.Entry
An entry in a GeneralHashTable
.
This is a public class to allow overriding.
Method Summary |
boolean |
equals(java.lang.Object o)
Implements the general Map.Entry specification. |
java.lang.Object |
get(java.lang.Object defaultValue)
|
java.lang.Object |
getKey()
|
java.lang.Object |
getValue()
|
int |
hashCode()
Implements the general Map.Entry specification. |
java.lang.Object |
setValue(java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
next
public HashNode next
HashNode
public HashNode()
get
public java.lang.Object get(java.lang.Object defaultValue)
getKey
public java.lang.Object getKey()
- Specified by:
getKey
in interface java.util.Map.Entry
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interface java.util.Map.Entry
setValue
public java.lang.Object setValue(java.lang.Object value)
- Specified by:
setValue
in interface java.util.Map.Entry
equals
public boolean equals(java.lang.Object o)
- Implements the general Map.Entry specification.
But note that a GeneralHashTable subclass may override
matches
,
so it no longer uses equals, in which case it won't be consistent
with this method, unless it is overridden.
- Specified by:
equals
in interface java.util.Map.Entry
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Implements the general Map.Entry specification.
But note that a GeneralHashTable subclass may override
hash
,
so it no longer uses equals, in which case it won't be consistent
with this method, unless it is overridden.
- Specified by:
hashCode
in interface java.util.Map.Entry
- Overrides:
hashCode
in class java.lang.Object