|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.ref.Reference
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.
Method Summary | |
void |
clear()
Clears this reference object. |
boolean |
enqueue()
Adds this reference object to the queue with which it is registered, if any. |
Object |
get()
Returns this reference object's referent. |
boolean |
isEnqueued()
Tells whether or not this reference object has been enqueued, either by the program or by the garbage collector. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public Object get()
null
.null
if this reference object has been clearedpublic void clear()
public boolean isEnqueued()
false
.true
if and only if this reference object has
been enqueuedpublic boolean enqueue()
true
if this reference object was successfully
enqueued; false
if it was already enqueued or if
it was not registered with a queue when it was created
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Oracle and/or its affiliates, in the US and other countries.
Copyright © 1995, 2010 Oracle and/or its affiliates. All rights reserved.