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

public Class SumOfLongProcedure<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.LongFunction, 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.

Field Summary

Modifier and TypeField and Description
private final LongFunction<? super T>
private long
private static final long

Constructor Summary

AccessConstructor and Description
public
SumOfLongProcedure(LongFunction<? super T> function)

Method Summary

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

Field Detail

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

Constructor Detail

SumOfLongProcedureback to summary
public SumOfLongProcedure(LongFunction<? super T> function)

Method Detail

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

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

Annotations
@Override