edu.rice.cs.plt.lambda
Interface Box<T>
- All Superinterfaces:
- Thunk<T>
- All Known Implementing Classes:
- ConcurrentBox, DelayedThunk, SimpleBox, StateMonitor
public interface Box<T>
- extends Thunk<T>
A thunk with a mutable value. This is useful in situations in which a "pass-by-reference"
semantics is required. For example, where a local class requires access to a mutable (but final)
value, a box could be used.
|
Method Summary |
void |
set(T val)
|
| Methods inherited from interface edu.rice.cs.plt.lambda.Thunk |
value |
set
void set(T val)