saker.util Documentation TaskDoc JavaDoc Packages
public class SupplierWeakReference<Textends WeakReference<T> implements Supplier<T>
Class extending WeakReference and also implementing Supplier.
TThe type of the referent.
Constructors
public
Creates a new weak reference that refers to the given object.
public
SupplierWeakReference(T referent, ReferenceQueue<super T> q)
Creates a new weak reference that refers to the given object and is registered with the given queue.
public SupplierWeakReference(T referent)
Documentation included from: WeakReference
Creates a new weak reference that refers to the given object. The new reference is not registered with any queue.
referentobject the new weak reference will refer to
public SupplierWeakReference(T referent, ReferenceQueue<super T> q)
Documentation included from: WeakReference
Creates a new weak reference that refers to the given object and is registered with the given queue.
referentobject the new weak reference will refer to
qthe queue with which the reference is to be registered, or null if registration is not required