|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAllocatorContext.Reference<T>
public static class AllocatorContext.Reference<T>
This class represents a reference
allocated from the current AllocatorContext
.
The reachability level of this reference is the scope of the
AllocatorContext
in which it has been
created
.
Constructor Summary | |
---|---|
AllocatorContext.Reference()
Default constructor. |
Method Summary | ||
---|---|---|
T |
get()
Returns the value this reference referes to. |
|
static
|
newInstance()
Returns a new stack reference instance allocated on the current stack when executing in a StackContext . |
|
void |
set(T value)
Sets the value this reference referes to. |
|
String |
toString()
Returns the string representation of the current value of this reference. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AllocatorContext.Reference()
Method Detail |
---|
public static <T> AllocatorContext.Reference<T> newInstance()
StackContext
.
public String toString()
toString
in class Object
String.valueOf(this.get())
public final T get()
Reference
get
in interface Reference<T>
null
if not set.public final void set(T value)
Reference
set
in interface Reference<T>
value
- the reference value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |