Class ThreadedAccumulator<T,​A,​R>

  • All Implemented Interfaces:
    java.util.function.Consumer<T>, java.util.function.Supplier<R>

    public class ThreadedAccumulator<T,​A,​R>
    extends java.lang.Object
    implements java.util.function.Consumer<T>, java.util.function.Supplier<R>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(T t)  
      R get()  
      R getThenReset()  
      void pack()  
      void reset()  
      • 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
    • Method Detail

      • getThenReset

        public R getThenReset()
      • get

        public R get()
        Specified by:
        get in interface java.util.function.Supplier<T>
      • reset

        public void reset()
      • accept

        public void accept​(T t)
        Specified by:
        accept in interface java.util.function.Consumer<T>
      • pack

        public void pack()