Package org.eclipse.net4j.util.ref
Class KeyedStrongReference<K,T>
- java.lang.Object
-
- org.eclipse.net4j.util.ref.KeyedStrongReference<K,T>
-
- All Implemented Interfaces:
KeyedReference<K,T>
public class KeyedStrongReference<K,T> extends java.lang.Object implements KeyedReference<K,T>
- Author:
- Eike Stepper
-
-
Constructor Summary
Constructors Constructor Description KeyedStrongReference(K key, T ref)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleanenqueue()Tget()KgetKey()ReferenceTypegetType()booleanisEnqueued()java.lang.StringtoString()
-
-
-
Method Detail
-
getType
public ReferenceType getType()
- Specified by:
getTypein interfaceKeyedReference<K,T>
-
getKey
public K getKey()
- Specified by:
getKeyin interfaceKeyedReference<K,T>
-
get
public T get()
- Specified by:
getin interfaceKeyedReference<K,T>- See Also:
Reference.get()
-
clear
public void clear()
- Specified by:
clearin interfaceKeyedReference<K,T>- See Also:
Reference.clear()
-
isEnqueued
public boolean isEnqueued()
- Specified by:
isEnqueuedin interfaceKeyedReference<K,T>- See Also:
Reference.isEnqueued()
-
enqueue
public boolean enqueue()
- Specified by:
enqueuein interfaceKeyedReference<K,T>- See Also:
Reference.enqueue()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-