|
ref_send API 1.16 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joe_e.Struct
org.ref_send.var.Variable<T>
T - value typepublic class Variable<T>
A variable.
| Field Summary | |
|---|---|
Getter<T> |
getter
read permission |
Guard<T> |
guard
assignment condition |
Setter<T> |
setter
write permission |
| Constructor Summary | |
|---|---|
Variable(Getter<T> getter,
Setter<T> setter,
Guard<T> guard)
Constructs an instance. |
|
| Method Summary | ||
|---|---|---|
T |
get()
Gets the near value. |
|
void |
set(T value)
Sets the value. |
|
static
|
var(T value)
Constructs an instance. |
|
static
|
var(T value,
Guard<T> guard)
Constructs an instance. |
|
| Methods inherited from class org.joe_e.Struct |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Getter<T> getter
public final Setter<T> setter
public final Guard<T> guard
| Constructor Detail |
|---|
public Variable(Getter<T> getter,
Setter<T> setter,
Guard<T> guard)
getter - gettersetter - setterguard - guard| Method Detail |
|---|
public final T get()
public final void set(T value)
value - value to assignpublic static <T> Variable<T> var(T value)
T - value typevalue - initial value
public static <T> Variable<T> var(T value,
Guard<T> guard)
T - value typevalue - initial valueguard - assignment condition
|
ref_send API 1.16 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 1998-2007 Waterken Inc. under the terms of the MIT X license.