java.lang.ref.PhantomReference< T > Class Reference

Inheritance diagram for java.lang.ref.PhantomReference< T >:

java.lang.ref.Reference< T >

List of all members.

Detailed Description

PhantomReference objects are used to detect referents which are no longer visible and are eligible to have their storage reclaimed.


Public Member Functions

 PhantomReference (T r, ReferenceQueue<?super T > q)
 Constructs a new instance of this class.
get ()
 Return the referent of the reference object.

Constructor & Destructor Documentation

java.lang.ref.PhantomReference< T >.PhantomReference ( r,
ReferenceQueue<?super T >  q 

Constructs a new instance of this class.

r referent to track.
q queue to register to the reference object with.

Member Function Documentation

T java.lang.ref.PhantomReference< T >.get (  ) 

Return the referent of the reference object.

Phantom reference objects referents are inaccessible, and so null is returned.

Object Returns null.

Reimplemented from java.lang.ref.Reference< T >.

The documentation for this class was generated from the following file:

Genereated on Tue Dec 9 14:09:48 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.