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$
Deprecated.
use AccumulatorV2. Since 2.0.0.
|
static class |
AccumulatorParam.FloatAccumulatorParam$
Deprecated.
use AccumulatorV2. Since 2.0.0.
|
static class |
AccumulatorParam.IntAccumulatorParam$
Deprecated.
use AccumulatorV2. Since 2.0.0.
|
static class |
AccumulatorParam.LongAccumulatorParam$
Deprecated.
use AccumulatorV2. Since 2.0.0.
|
static class |
AccumulatorParam.StringAccumulatorParam$
Deprecated.
use AccumulatorV2. Since 2.0.0.
|
| Modifier and Type | Method and Description |
|---|---|
T |
addAccumulator(T t1,
T t2)
Deprecated.
Add additional data to the accumulator value.
|
addInPlace, zeroT addAccumulator(T t1, T t2)
AccumulableParamr
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