|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A - the type of the input accumulated valueB - the type of the output accumulated valuepublic interface Accumulator<A,B>
An imperative accumulator. See Reduction for more details.
| Method Summary | |
|---|---|
void |
accumulate(A element)
Adds an element to this accumulator |
B |
value()
Answers the accumulated value |
| Method Detail |
|---|
void accumulate(A element)
element - the element to add.B value()
value in interface Thunk<B>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||