org.biojava.utils.cache
Class KeyedWeakReference
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.WeakReference
org.biojava.utils.cache.KeyedWeakReference
public class KeyedWeakReference
- extends WeakReference
Subclass of WeakReference which includes and extra field (the key)
which can be used to help cleanup once this reference has been
enqueued.
- Since:
- 1.3
- Author:
- Thomas Down
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyedWeakReference
public KeyedWeakReference(Object key,
Object ref)
KeyedWeakReference
public KeyedWeakReference(Object key,
Object ref,
ReferenceQueue queue)
getKey
public Object getKey()