Class SumOfLongProcedure<T>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.SumOfLongProcedure<T>
-
- All Implemented Interfaces:
java.io.Serializable,java.util.function.Consumer<T>,Procedure<T>
public class SumOfLongProcedure<T> extends java.lang.Object implements Procedure<T>
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 LongFunction<? super T>functionprivate longresultprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description SumOfLongProcedure(LongFunction<? super T> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetResult()voidvalue(T each)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
function
private final LongFunction<? super T> function
-
result
private long result
-
-
Constructor Detail
-
SumOfLongProcedure
public SumOfLongProcedure(LongFunction<? super T> function)
-
-