| java.lang.Object java.lang.ref.Reference
All known Subclasses: java.lang.ref.WeakReference, java.lang.ref.SoftReference, java.lang.ref.PhantomReference, java.lang.ref.FinalReference,
Reference | abstract public class Reference (Code) | | Abstract base class for reference objects. This class defines the
operations common to all reference objects. Because reference objects are
implemented in close cooperation with the garbage collector, this class may
not be subclassed directly.
version: 12/19/01 (CLDC 1.1) since: JDK1.2, CLDC 1.1 |
Method Summary | |
public void | clear() Clears this reference object. | public Object | get() Returns this reference object's referent. |
clear | public void clear()(Code) | | Clears this reference object.
|
get | public Object get()(Code) | | Returns this reference object's referent. If this reference object has
been cleared, either by the program or by the garbage collector, then
this method returns null .
The object to which this reference refers, ornull if this reference object has been cleared |
|
|