gnu.kawa.util

Class HashNode

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(Object o)
Implements the general Map.Entry specification.
Object
get(Object defaultValue)
Object
getKey()
Object
getValue()
int
hashCode()
Implements the general Map.Entry specification.
Object
setValue(Object value)

Method Details

equals

public boolean equals(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.

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 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)