K - the type of keys maintained by the cache that holds these
value referencesV - the type of cached valuespublic final class CachedValueWeakReference<K,V> extends WeakReference<V>
| Constructor and Description |
|---|
CachedValueWeakReference(WeakValueCache<K,V> cache,
K key,
V referent,
ReferenceQueue<? super V> q)
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 referencekey - the key associated with the referencereferent - the object to which the new weak reference will referq - the queue with which the reference is to be registeredNullPointerException - if any parameter is nullCopyright © 2014. All Rights Reserved.