public interface AccumulatorParam<T> extends AccumulableParam<T,T>
AccumulableParam
where the only data type you can add
in is the same type as the accumulated value. An implicit AccumulatorParam object needs to be
available when you create Accumulators of a specific type.
Modifier and Type | Interface and Description |
---|---|
static class |
AccumulatorParam.DoubleAccumulatorParam$ |
static class |
AccumulatorParam.FloatAccumulatorParam$ |
static class |
AccumulatorParam.IntAccumulatorParam$ |
static class |
AccumulatorParam.LongAccumulatorParam$ |
Modifier and Type | Method and Description |
---|---|
T |
addAccumulator(T t1,
T t2)
Add additional data to the accumulator value.
|
addInPlace, zero
T addAccumulator(T t1, T t2)
AccumulableParam
r
for efficiency (to avoid allocating objects).
addAccumulator
in interface AccumulableParam<T,T>
t1
- the current value of the accumulatort2
- the data to be added to the accumulator