Class AbstractReferenceMap.SoftRef<T>

  • Enclosing class:
    AbstractReferenceMap<K,​V>

    static class AbstractReferenceMap.SoftRef<T>
    extends java.lang.ref.SoftReference<T>
    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, T r, java.lang.ref.ReferenceQueue<? super T> 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, enqueue, isEnqueued
      • Methods inherited from class java.lang.Object

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

      • hash

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

      • SoftRef

        public SoftRef​(int hash,
                       T r,
                       java.lang.ref.ReferenceQueue<? super T> q)
    • Method Detail

      • hashCode

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