Class SumOfIntProcedure<T>

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

public class SumOfIntProcedure<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

    • SumOfIntProcedure

      public SumOfIntProcedure(IntFunction<? super T> function)
  • Method Details

    • getResult

      public int getResult()
    • value

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