Class SumLong

java.lang.Object
one.microstream.functional.SumLong
All Implemented Interfaces:
Consumer<Long>, Aggregator<Long,​Long>

public final class SumLong
extends Object
implements Aggregator<Long,​Long>
  • Constructor Details

  • Method Details

    • accept

      public final void accept​(Long n)
      Description copied from interface: Aggregator
      Aggregate single element to the collecting object.
      Specified by:
      accept in interface Aggregator<Long,​Long>
      Specified by:
      accept in interface Consumer<Long>
      Parameters:
      n - to aggregate
    • yield

      public final Long yield()
      Description copied from interface: Aggregator
      Builds or aggregates the added elements to one collected object.
      Specified by:
      yield in interface Aggregator<Long,​Long>
      Returns:
      the collected object