org.eclipse.net4j.util.ref
Class KeyedStrongReference<K,T>

java.lang.Object
  extended by org.eclipse.net4j.util.ref.KeyedStrongReference<K,T>
All Implemented Interfaces:
KeyedReference<K,T>

public class KeyedStrongReference<K,T>
extends Object
implements KeyedReference<K,T>


Constructor Summary
KeyedStrongReference(K key, T ref)
           
 
Method Summary
 void clear()
           
 boolean enqueue()
           
 T get()
           
 K getKey()
           
 ReferenceType getType()
           
 boolean isEnqueued()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyedStrongReference

public KeyedStrongReference(K key,
                            T ref)
Method Detail

getType

public ReferenceType getType()
Specified by:
getType in interface KeyedReference<K,T>

getKey

public K getKey()
Specified by:
getKey in interface KeyedReference<K,T>

get

public T get()
Specified by:
get in interface KeyedReference<K,T>
See Also:
Reference.get()

clear

public void clear()
Specified by:
clear in interface KeyedReference<K,T>
See Also:
Reference.clear()

isEnqueued

public boolean isEnqueued()
Specified by:
isEnqueued in interface KeyedReference<K,T>
See Also:
Reference.isEnqueued()

enqueue

public boolean enqueue()
Specified by:
enqueue in interface KeyedReference<K,T>
See Also:
Reference.enqueue()

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.