Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | |
public boolean | enqueue()
Overrides java. Clears this reference object and adds it to the queue with which it is registered, if any. |
public T |
FinalReference | back to summary |
---|---|
public FinalReference(T referent, ReferenceQueue<? super T> q) |
clear | back to summary |
---|---|
public void clear() Overrides java. Doc from java. Clears this reference object. Invoking this method will not cause this object to be enqueued. This method is invoked only by Java code; when the garbage collector clears references it does so directly, without invoking this method.
|
enqueue | back to summary |
---|---|
public boolean enqueue() Overrides java. Doc from java. Clears this reference object and adds it to the queue with which it is registered, if any. This method is invoked only by Java code; when the garbage collector enqueues references it does so directly, without invoking this method.
|
get | back to summary |
---|---|
public T get() Overrides java. Doc from java. 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
|