|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccumulableParam<R,T>
Helper object defining how to accumulate values of a particular type. An implicit
AccumulableParam needs to be available when you create Accumulable
s of a specific type.
Method Summary | |
---|---|
R |
addAccumulator(R r,
T t)
Add additional data to the accumulator value. |
R |
addInPlace(R r1,
R r2)
Merge two accumulated values together. |
R |
zero(R initialValue)
Return the "zero" (identity) value for an accumulator type, given its initial value. |
Method Detail |
---|
R addAccumulator(R r, T t)
r
for efficiency (to avoid allocating objects).
r
- the current value of the accumulatort
- the data to be added to the accumulator
R addInPlace(R r1, R r2)
r1
- one set of accumulated datar2
- another set of accumulated data
R zero(R initialValue)
initialValue
- (undocumented)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |