gnu.kawa.util
Class HashNode

java.lang.Object
  extended by 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.


Field Summary
 HashNode next
           
 
Constructor Summary
HashNode()
           
 
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
 

Field Detail

next

public HashNode next
Constructor Detail

HashNode

public HashNode()
Method Detail

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