java.lang.ref
public
class
java.lang.ref.PhantomReference
PhantomReference objects are used to detect referents which are no longer
visible and are eligible to have their storage reclaimed.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
PhantomReference(T r, ReferenceQueue q)
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. Phantom reference objects
referents are inaccessible, and so null is returned.