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