public class SumOfDoubleProcedure<T> extends Object implements Procedure<T>, DoubleSumResultHolder
Procedure
that holds on to the summation of elements seen so far,
determined by the Function
.Constructor and Description |
---|
SumOfDoubleProcedure(DoubleFunction<? super T> function) |
public SumOfDoubleProcedure(DoubleFunction<? super T> function)
public double getResult()
getResult
in interface DoubleSumResultHolder
public double getCompensation()
getCompensation
in interface DoubleSumResultHolder
Copyright © 2004–2016. All rights reserved.