Class ToArrayAggregator<E>

java.lang.Object
one.microstream.functional.ToArrayAggregator<E>
All Implemented Interfaces:
Consumer<E>, Aggregator<E,​E[]>

public final class ToArrayAggregator<E>
extends Object
implements Aggregator<E,​E[]>
  • Constructor Details

  • Method Details

    • accept

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

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