public final class DoubleSumAggregatorBinaryFunction extends Object implements BinaryFunction<Double,Double,Double>
AbstractNoStoreAggregator
which
sums up the 2 given numbers (hence the "Binary" in the name!). Counterpart of
DoubleSumAggregatorFunction
.public DoubleSumAggregatorBinaryFunction()
public Double evaluate(Double left, Double right)
evaluate
in interface BinaryFunction<Double,Double,Double>
left
- first number to add. If null
, then
right
will be returned.right
- second number to add. If null
, then
left
will be returned.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.