Package org.biojava.nbio.ontology.utils
Class KeyedWeakReference
- java.lang.Object
 - 
- java.lang.ref.Reference<T>
 - 
- java.lang.ref.WeakReference
 - 
- org.biojava.nbio.ontology.utils.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
 
 
- 
- 
Constructor Summary
Constructors Constructor Description KeyedWeakReference(Object key, Object ref)KeyedWeakReference(Object key, Object ref, ReferenceQueue queue) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetKey()- 
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, get, isEnqueued, reachabilityFence 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
KeyedWeakReference
public KeyedWeakReference(Object key, Object ref)
 
- 
KeyedWeakReference
public KeyedWeakReference(Object key, Object ref, ReferenceQueue queue)
 
 - 
 
 -