|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of provided value@Applicative public interface Thunk<T>
A Thunk is a computation that takes no arguments a returns a value.
In other words, is an object that is capable of providing another one,
through it value() method.
Thunks of return type Void have semantics compatible with
Runnable, as they do not provide a value, but a side effect instead
Notice: the meaning of the term "Thunk" is sometimes vague and varies depending the context and author. Within Staccato-Commons, thunk must be interpreted a "no arguments expression"
Recomendations for implementing| Method Summary | |
|---|---|
T |
value()
Returns the value provided. |
| Method Detail |
|---|
T value()
Thunk is
also known as evaluating the thunk.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||