|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ref.Reference<T>
T
- Type of object that is referent.public abstract class Reference<T>
Base class for references.
Field Summary | |
---|---|
protected T |
ref
Referent for this Reference object. |
Constructor Summary | |
---|---|
Reference()
|
Method Summary | |
---|---|
void |
clear()
Clear the referent that this Reference refers to. |
boolean |
enqueue()
Enqueue this reference into a reference queue. |
T |
get()
Gets the referent for this Reference. |
boolean |
isEnqueued()
Get the status of the Reference object in the queue. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected T ref
Constructor Detail |
---|
public Reference()
Method Detail |
---|
public void clear()
public boolean enqueue()
UnsupportedOperationException
- if not supported by the VM.public T get()
public boolean isEnqueued()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |