public static class Variable.Global<X> extends java.lang.Object implements Variable<X>
Variable
implementation with
context-local
values.
Instances of this class can be set independently by multiple-threads
as long as each concurrent thread executes within a
LocalContext
. For example:[code]
public abstract class Engine {
public static final Variable.GlobalVariable.Global<X>, Variable.Local<X>
Constructor and Description |
---|
Global(java.lang.String symbol)
Creates a new global variable with a unique symbol.
|
Modifier and Type | Method and Description |
---|---|
X |
get() |
java.lang.String |
getSymbol()
Returns the symbol for this variable.
|
void |
set(X arg0) |
public Global(java.lang.String symbol)
symbol
- the variable symbol.