Package org.eclipse.net4j.util.ref
Class KeyedSoftReference<K,T>
- java.lang.Object
-
- java.lang.ref.Reference<T>
-
- java.lang.ref.SoftReference<T>
-
- org.eclipse.net4j.util.ref.KeyedSoftReference<K,T>
-
- All Implemented Interfaces:
KeyedReference<K,T>
public class KeyedSoftReference<K,T> extends java.lang.ref.SoftReference<T> implements KeyedReference<K,T>
- Author:
- Eike Stepper
-
-
Constructor Summary
Constructors Constructor Description KeyedSoftReference(K key, T ref)
KeyedSoftReference(K key, T ref, java.lang.ref.ReferenceQueue<T> queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description K
getKey()
ReferenceType
getType()
java.lang.String
toString()
-
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, isEnqueued, reachabilityFence
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.net4j.util.ref.KeyedReference
clear, enqueue, get, isEnqueued
-
-
-
-
Method Detail
-
getType
public ReferenceType getType()
- Specified by:
getType
in interfaceKeyedReference<K,T>
-
getKey
public K getKey()
- Specified by:
getKey
in interfaceKeyedReference<K,T>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-