gnu.kawa.util

Class HashNode

public class HashNode extends Object implements Entry

An entry in a GeneralHashTable. This is a public class to allow overriding.
Field Summary
HashNodenext
Method Summary
booleanequals(Object o)
Implements the general Map.Entry specification.
Objectget(Object defaultValue)
ObjectgetKey()
ObjectgetValue()
inthashCode()
Implements the general Map.Entry specification.
ObjectsetValue(Object value)

Field Detail

public HashNode next

Method Detail

equals

public boolean equals(Object o)
Implements the general Map.Entry specification. But note that a GeneralHashTable subclass may override {@code matches}, so it no longer uses equals, in which case it won't be consistent with this method, unless it is overridden.

get

public Object get(Object defaultValue)

getKey

public Object getKey()

getValue

public Object getValue()

hashCode

public int hashCode()
Implements the general Map.Entry specification. But note that a GeneralHashTable subclass may override {@code hash}, so it no longer uses equals, in which case it won't be consistent with this method, unless it is overridden.

setValue

public Object setValue(Object value)