Top Description Fields Constructors Methods
org.eclipse.collections.impl.block.procedure

public Class SumOfShortProcedure<T>

extends Object
implements Procedure<T>
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.Procedure, java.io.Serializable, java.util.function.Consumer
Imports
org.eclipse.collections.api.block.function.Function, org.eclipse.collections.api.block.function.primitive.ShortFunction, org.eclipse.collections.api.block.procedure.Procedure

Implementation of Procedure that holds on to the summation of elements seen so far, determined by the Function. This file was automatically generated from template file sumOfPrimitiveProcedure.stg.

Field Summary

Modifier and TypeField and Description
protected final ShortFunction<? super T>
protected short
private static final long

Constructor Summary

AccessConstructor and Description
public
SumOfShortProcedure(ShortFunction<? super T> function)

Method Summary

Modifier and TypeMethod and Description
public short
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

functionback to summary
protected final ShortFunction<? super T> function
resultback to summary
protected short result
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

SumOfShortProcedureback to summary
public SumOfShortProcedure(ShortFunction<? super T> function)

Method Detail

getResultback to summary
public short getResult()
valueback to summary
public void value(T each)

Implements org.eclipse.collections.api.block.procedure.Procedure.value.

Annotations
@Override