java.io.Serializable
, java.util.function.Consumer<T>
, Procedure<T>
, DoubleSumResultHolder
public class SumOfFloatProcedure<T> extends java.lang.Object implements Procedure<T>, DoubleSumResultHolder
Procedure
that holds on to the summation of elements seen so far,
determined by the Function
.Constructor | Description |
---|---|
SumOfFloatProcedure(FloatFunction<? super T> function) |
Modifier and Type | Method | Description |
---|---|---|
double |
getCompensation() |
|
double |
getResult() |
|
void |
value(T each) |
public SumOfFloatProcedure(FloatFunction<? super T> function)
public double getResult()
getResult
in interface DoubleSumResultHolder
public double getCompensation()
getCompensation
in interface DoubleSumResultHolder
Copyright © 2004–2018. All rights reserved.