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