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() |
get
clear, enqueue, isEnqueued
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clear, enqueue, get, isEnqueued
public 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, 2012 Eike Stepper (Berlin, Germany) and others.