public abstract class Reference extends Object
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the reference so that it no longer refers to any Object.
|
boolean |
enqueue()
Enqueue the Reference if it was not previously enqueued.
|
protected void |
finalize()
This method (when overriden), will be called when the VM determines that the Object can be
garbage collected.
|
Object |
get()
Returns the Object this Reference refers to.
|
boolean |
isEnqueued()
Returns if the Reference is currently in a queue.
|
public Object get()
public boolean enqueue()
public boolean isEnqueued()
public void clear()
protected void finalize()
Object
The finalize() method of a Class is only called if it overrides finalize() - the finalize() method java.lang.Object is never called by the Eve VM.