private static class Reduce.SumAggregator extends Reduce.ValueAggregator
Modifier and Type | Field and Description |
---|---|
private double |
valueSum |
Modifier | Constructor and Description |
---|---|
private |
SumAggregator() |
Modifier and Type | Method and Description |
---|---|
void |
aggregate(double value)
Add a new value to those aggregated by this
|
double |
aggregatedValue()
Returns the value aggregated by this
|
public void aggregate(double value)
Reduce.ValueAggregator
aggregate
in class Reduce.ValueAggregator
public double aggregatedValue()
Reduce.ValueAggregator
aggregatedValue
in class Reduce.ValueAggregator
Copyright © 2017. All rights reserved.