java.lang.ref
public
class
java.lang.ref.SoftReference
SoftReference objects are used to detect referents which are no longer
visible and who's memory is to be reclaimed.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
SoftReference(T r)
Constructs a new instance of this class.
Constructs a new instance of this class.
Parameters
| r
| referent to track. |
| q
| queue to register to the reference object with.
|
Public Methods
public
T
get()
Return the referent of the reference object.
Returns
- Object Referent to which reference refers, or null if object has
been cleared.