FileDocCategorySizeDatePackage
SoftReference.javaAPI DocAndroid 1.5 API4686Wed May 06 22:41:04 BST 2009java.lang.ref

SoftReference

public class SoftReference extends Reference
Implements a soft reference, which is the least-weak of the three types of references. Once the garbage collector has decided that an object {@code obj} is Omit source code)

');
Fields Summary
Constructors Summary
public SoftReference(T r)
Constructs a new soft reference to the given referent. The newly created reference is not registered with any reference queue.

param
r the referent to track
since
Android 1.0

        super();
        referent = r;
    
public SoftReference(T r, ReferenceQueue q)
Constructs a new soft reference to the given referent. The newly created reference is registered with the given reference queue.

param
r the referent to track
param
q the queue to register to the reference object with. A null value results in a weak reference that is not associated with any queue.
since
Android 1.0

        super();
        referent = r;
        queue = q;
    
Methods Summary