Package one.microstream.functional
Class AggregateArrayBuilder<E>
java.lang.Object
one.microstream.functional.AggregateArrayBuilder<E>
- All Implemented Interfaces:
Consumer<E>,Aggregator<E,E[]>
public final class AggregateArrayBuilder<E> extends Object implements Aggregator<E,E[]>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.functional.Aggregator
Aggregator.Creator<E,R> -
Method Summary
Modifier and Type Method Description voidaccept(E element)Aggregate single element to the collecting object.static AggregateArrayBuilder<Object>New()static <E> AggregateArrayBuilder<E>New(Class<E> elementType)static <E> AggregateArrayBuilder<E>New(Class<E> elementType, int initialCapacity)E[]yield()Builds or aggregates the added elements to one collected object.
-
Method Details
-
New
-
New
-
New
-
accept
Description copied from interface:AggregatorAggregate single element to the collecting object. -
yield
Description copied from interface:AggregatorBuilds or aggregates the added elements to one collected object.- Specified by:
yieldin interfaceAggregator<E,E[]>- Returns:
- the collected object
-