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