Class AbstractReferenceMap.SoftRef

  • Enclosing class:
    AbstractReferenceMap

    static class AbstractReferenceMap.SoftRef
    extends java.lang.ref.SoftReference
    A soft 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
      SoftRef​(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.SoftReference

        get
      • Methods inherited from class java.lang.ref.Reference

        clear, clone, enqueue, 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

      • SoftRef

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

      • hashCode

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