Package gnu.kawa.util

Class WeakHashNode<K,​V>

  • All Implemented Interfaces:
    java.util.Map.Entry<K,​V>

    public class WeakHashNode<K,​V>
    extends java.lang.ref.WeakReference<K>
    implements java.util.Map.Entry<K,​V>
    • Constructor Summary

      Constructors 
      Constructor Description
      WeakHashNode​(K key, java.lang.ref.ReferenceQueue<K> q, int hash)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      K getKey()  
      V getValue()  
      V setValue​(V value)  
      • Methods inherited from class java.lang.ref.Reference

        clear, clone, enqueue, get, isEnqueued, reachabilityFence
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Map.Entry

        equals, hashCode
    • Field Detail

      • hash

        public int hash
      • value

        public V value
    • Constructor Detail

      • WeakHashNode

        public WeakHashNode​(K key,
                            java.lang.ref.ReferenceQueue<K> q,
                            int hash)
    • Method Detail

      • getKey

        public K getKey()
        Specified by:
        getKey in interface java.util.Map.Entry<K,​V>
      • getValue

        public V getValue()
        Specified by:
        getValue in interface java.util.Map.Entry<K,​V>
      • setValue

        public V setValue​(V value)
        Specified by:
        setValue in interface java.util.Map.Entry<K,​V>