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 ofProcedurethat 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 doublecompensationprivate FloatFunction<? super T>functionprivate doubleresultprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description SumOfFloatProcedure(FloatFunction<? super T> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetCompensation()doublegetResult()voidvalue(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:
getResultin interfaceDoubleSumResultHolder
-
getCompensation
public double getCompensation()
- Specified by:
getCompensationin interfaceDoubleSumResultHolder
-
-