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 void
clear()
boolean
enqueue()
T
get()
K
getKey()
ReferenceType
getType()
boolean
isEnqueued()
java.lang.String
toString()
-
-
-
Method Detail
-
getType
public ReferenceType getType()
- Specified by:
getType
in interfaceKeyedReference<K,T>
-
getKey
public K getKey()
- Specified by:
getKey
in interfaceKeyedReference<K,T>
-
get
public T get()
- Specified by:
get
in interfaceKeyedReference<K,T>
- See Also:
Reference.get()
-
clear
public void clear()
- Specified by:
clear
in interfaceKeyedReference<K,T>
- See Also:
Reference.clear()
-
isEnqueued
public boolean isEnqueued()
- Specified by:
isEnqueued
in interfaceKeyedReference<K,T>
- See Also:
Reference.isEnqueued()
-
enqueue
public boolean enqueue()
- Specified by:
enqueue
in interfaceKeyedReference<K,T>
- See Also:
Reference.enqueue()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-