Class AbstractWeakValueMap.WeakValueRef<K,​V>

  • Type Parameters:
    K - the type of key
    V - the type of value
    Enclosing class:
    AbstractWeakValueMap<K,​V>

    protected static class AbstractWeakValueMap.WeakValueRef<K,​V>
    extends java.lang.ref.WeakReference<V>
    A weak value ref that also knows its key in the map.

    Used for processing the reference queue, so we know which keys to remove.

    • Method Summary

      • 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