
public class KeyedWeakReference<K,T> extends WeakReference<T> implements KeyedReference<K,T>
| Constructor and Description |
|---|
KeyedWeakReference(K key,
T ref) |
KeyedWeakReference(K key,
T ref,
ReferenceQueue<T> queue) |
| Modifier and Type | Method and Description |
|---|---|
K |
getKey() |
ReferenceType |
getType() |
String |
toString() |
clear, enqueue, get, isEnqueuedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, enqueue, get, isEnqueuedpublic KeyedWeakReference(K key, T ref, ReferenceQueue<T> queue)
public ReferenceType getType()
getType in interface KeyedReference<K,T>public K getKey()
getKey in interface KeyedReference<K,T>Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.