Package gnu.kawa.util

Class HashNode<K,​V>

    • Field Detail

      • keyHash

        protected int keyHash
    • Constructor Detail

      • HashNode

        public HashNode​(K key,
                        V value)
      • HashNode

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

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