Class SumOfFloatProcedure<T>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.SumOfFloatProcedure<T>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.Consumer<T>
,Procedure<T>
,DoubleSumResultHolder
public class SumOfFloatProcedure<T> extends java.lang.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
-
-
Field Summary
Fields Modifier and Type Field Description private double
compensation
private FloatFunction<? super T>
function
private double
result
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SumOfFloatProcedure(FloatFunction<? super T> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getCompensation()
double
getResult()
void
value(T each)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
function
private final FloatFunction<? super T> function
-
result
private double result
-
compensation
private double compensation
-
-
Constructor Detail
-
SumOfFloatProcedure
public SumOfFloatProcedure(FloatFunction<? super T> function)
-
-
Method Detail
-
getResult
public double getResult()
- Specified by:
getResult
in interfaceDoubleSumResultHolder
-
getCompensation
public double getCompensation()
- Specified by:
getCompensation
in interfaceDoubleSumResultHolder
-
-