Class AbstractReferenceMap.WeakRef

  • Enclosing class:
    AbstractReferenceMap

    static class AbstractReferenceMap.WeakRef
    extends java.lang.ref.WeakReference
    A weak reference holder.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int hash
      the hashCode of the key (even if the reference points to a value)
    • Constructor Summary

      Constructors 
      Constructor Description
      WeakRef​(int hash, java.lang.Object r, java.lang.ref.ReferenceQueue q)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int hashCode()  
      • Methods inherited from class java.lang.ref.Reference

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

        equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • hash

        private int hash
        the hashCode of the key (even if the reference points to a value)
    • Constructor Detail

      • WeakRef

        public WeakRef​(int hash,
                       java.lang.Object r,
                       java.lang.ref.ReferenceQueue q)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object