|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
I - The type of the incremental result (may be Void if there is no useful
intermediate result)R - The type of the final result (may be Void if the task has no useful final result)public interface IncrementalTask<I,R>
A thunk that performs incremental computation. Clients will repeatedly invoke step()
until isResolved() is true, signifying that the result has been computed.
value() need only be supported after the task has completed.
| Method Summary | |
|---|---|
boolean |
isResolved()
Whether the final result is ready. |
I |
step()
Perform a step in the computation. |
R |
value()
Produce the final result of the task. |
| Method Detail |
|---|
boolean isResolved()
false, step() will
be invoked; after returning true, only value() will be invoked.
isResolved in interface ResolvingThunk<R>I step()
isResolved() is true.
R value()
isResolved() is false.
value in interface Thunk<R>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||