
public class KeyedPhantomReference<K,T> extends PhantomReference<T> implements KeyedReference<K,T>
| Constructor and Description |
|---|
KeyedPhantomReference(K key,
T ref,
ReferenceQueue<T> queue) |
| Modifier and Type | Method and Description |
|---|---|
K |
getKey() |
ReferenceType |
getType() |
String |
toString() |
getclear, enqueue, isEnqueuedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, enqueue, get, isEnqueuedpublic KeyedPhantomReference(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-2014 Eike Stepper (Berlin, Germany) and others.