public class SumOfFloatProcedure<T> extends java.lang.Object implements com.gs.collections.api.block.procedure.Procedure<T>, DoubleSumResultHolder
Procedure that holds on to the summation of elements seen so far,
determined by the Function.| Constructor and Description |
|---|
SumOfFloatProcedure(com.gs.collections.api.block.function.primitive.FloatFunction<? super T> function) |
| Modifier and Type | Method and Description |
|---|---|
double |
getCompensation() |
double |
getResult() |
void |
value(T each) |
public SumOfFloatProcedure(com.gs.collections.api.block.function.primitive.FloatFunction<? super T> function)
public double getResult()
getResult in interface DoubleSumResultHolderpublic double getCompensation()
getCompensation in interface DoubleSumResultHolder