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 a GeneralHashTable. This is a public class to allow overriding.
See Also:
  • Field Details

    • next

      public HashNode<K,V> next
    • keyHash

      protected int keyHash
  • Constructor Details

    • HashNode

      public HashNode(K key, V value)
    • HashNode

      public HashNode(K key, V value, int keyHash)
  • Method Details

    • get

      public V get(V defaultValue)
    • 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.
      Specified by:
      equals in interface Map.Entry<K,V>
      Overrides:
      equals in class AbstractMap.SimpleEntry<K,V>