K- the type of keys maintained by the cache that holds these value references
V- the type of cached values
public final class CachedValueWeakReference<K,V> extends WeakReference<V>
|Constructor and Description|
Constructs a new cached value weak reference that refers to the given object and is registered with the given queue.
public CachedValueWeakReference(WeakValueCache<K,V> cache, K key, V referent, ReferenceQueue<? super V> q)
cache- the cache that holds this reference
key- the key associated with the reference
referent- the object to which the new weak reference will refer
q- the queue with which the reference is to be registered
NullPointerException- if any parameter is null
Copyright © 2015. All Rights Reserved.