public static class AllocatorContext.Reference<T> extends java.lang.Object implements 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 and Description |
|---|
Reference()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Returns the value this reference referes to.
|
static <T> AllocatorContext.Reference<T> |
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.
|
java.lang.String |
toString()
Returns the string representation of the current value of
this reference.
|
public static <T> AllocatorContext.Reference<T> newInstance()
StackContext.public java.lang.String toString()
toString in class java.lang.ObjectString.valueOf(this.get())public final T get()
ReferenceCopyright © 2005 - 2007 Javolution.