Class SumOfDoubleProcedure<T>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.SumOfDoubleProcedure<T>
-
- All Implemented Interfaces:
Serializable
,Consumer<T>
,Procedure<T>
,DoubleSumResultHolder
public class SumOfDoubleProcedure<T> extends Object implements Procedure<T>, DoubleSumResultHolder
Implementation ofProcedure
that holds on to the summation of elements seen so far, determined by theFunction
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SumOfDoubleProcedure(DoubleFunction<? super T> function)
-
-
-
Constructor Detail
-
SumOfDoubleProcedure
public SumOfDoubleProcedure(DoubleFunction<? super T> function)
-
-
Method Detail
-
getResult
public double getResult()
- Specified by:
getResult
in interfaceDoubleSumResultHolder
-
getCompensation
public double getCompensation()
- Specified by:
getCompensation
in interfaceDoubleSumResultHolder
-
-