Class PurgeOnWriteSoftValueHashMap.SoftValueReference<K,​V>

    • Constructor Summary

      Constructors 
      Constructor Description
      SoftValueReference​(K key, V value, java.lang.ref.ReferenceQueue<? super V> referenceQueue)
      Creates a new soft reference that remembers the given key, refers to the given object, and is registered with the given queue.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      K getKey()  
      • 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, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SoftValueReference

        public SoftValueReference​(K key,
                                  V value,
                                  java.lang.ref.ReferenceQueue<? super V> referenceQueue)
        Creates a new soft reference that remembers the given key, refers to the given object, and is registered with the given queue.
        Parameters:
        key - The key with which the value is being associated.
        value - The value to which the new soft reference will refer.
        referenceQueue - The queue with which the reference is to be registered.
        Throws:
        java.lang.NullPointerException - if the given reference queue is null.