Android
java.lang.ref
public class

java.lang.ref.WeakReference<T>

java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.WeakReference<T>

Summary

Public Constructors

            WeakReference(T r)
Constructs a new weak reference to the given referent.
            WeakReference(T r, ReferenceQueue<? super T> q)
Constructs a new weak reference to the given referent.
Methods inherited from class java.lang.ref.Reference
Methods inherited from class java.lang.Object

Details

Public Constructors

public WeakReference(T r)

Constructs a new weak reference to the given referent. The newly created reference is not registered with any reference queue.

Parameters

r the referent to track

public WeakReference(T r, ReferenceQueue<? super T> q)

Constructs a new weak reference to the given referent. The newly created reference is registered with the given reference queue.

Parameters

r the referent to track
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.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48