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) ');
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.
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.
super();
referent = r;
queue = q;
|
|