org.freedesktop.dbus
Class StrongReference<T>

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.WeakReference<T>
          extended by org.freedesktop.dbus.StrongReference<T>

public class StrongReference<T>
extends WeakReference<T>

An alternative to a WeakReference when you don't want that behaviour.


Constructor Summary
StrongReference(T referant)
           
 
Method Summary
 void clear()
           
 boolean enqueue()
           
 T get()
           
 boolean isEnqueued()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrongReference

public StrongReference(T referant)
Method Detail

clear

public void clear()
Overrides:
clear in class Reference<T>

enqueue

public boolean enqueue()
Overrides:
enqueue in class Reference<T>

get

public T get()
Overrides:
get in class Reference<T>

isEnqueued

public boolean isEnqueued()
Overrides:
isEnqueued in class Reference<T>