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

WeakReference

public class WeakReference extends Reference
Implements a weak reference, which is the middle of the three types of references. Once the garbage collector decides that an object {@code obj} is is Omit source code)

');
Fields Summary
Constructors Summary
public WeakReference(T r)
Constructs a new weak 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 WeakReference(T r, ReferenceQueue q)
Constructs a new weak 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