Class SumOfLongProcedure<T>

All Implemented Interfaces:
Serializable, Consumer<T>, Procedure<T>

public class SumOfLongProcedure<T> extends Object implements Procedure<T>
Implementation of Procedure that holds on to the summation of elements seen so far, determined by the Function.
See Also:
  • Constructor Details

    • SumOfLongProcedure

      public SumOfLongProcedure(LongFunction<? super T> function)
  • Method Details

    • getResult

      public long getResult()
    • value

      public void value(T each)
      Specified by:
      value in interface Procedure<T>