Class SumOfShortProcedure<T>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.SumOfShortProcedure<T>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.Consumer<T>
,Procedure<T>
public class SumOfShortProcedure<T> extends java.lang.Object implements Procedure<T>
Implementation ofProcedure
that holds on to the summation of elements seen so far, determined by theFunction
. This file was automatically generated from template file sumOfPrimitiveProcedure.stg.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ShortFunction<? super T>
function
protected short
result
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SumOfShortProcedure(ShortFunction<? super T> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getResult()
void
value(T each)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
function
protected final ShortFunction<? super T> function
-
result
protected short result
-
-
Constructor Detail
-
SumOfShortProcedure
public SumOfShortProcedure(ShortFunction<? super T> function)
-
-