Class SumOfIntProcedure<T>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.function.Consumer<T>, Procedure<T>

    public class SumOfIntProcedure<T>
    extends java.lang.Object
    implements Procedure<T>
    Implementation of Procedure that holds on to the summation of elements seen so far, determined by the Function.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getResult()  
      void value​(T each)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
      • Methods inherited from interface org.eclipse.collections.api.block.procedure.Procedure

        accept
    • Field Detail

      • result

        private int result
    • Constructor Detail

      • SumOfIntProcedure

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

      • getResult

        public int getResult()
      • value

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