E - type of object to collect/aggregateR - type of resulting aggregation@FunctionalInterface public interface Aggregator<E,R> extends Consumer<E>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Aggregator.Creator<E,R> |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(E element)
Aggregate single element to the collecting object.
|
default Aggregator<E,R> |
reset()
Resets the aggregation.
|
default R |
yield()
Builds or aggregates the added elements to one collected object.
|
default Aggregator<E,R> reset()
void accept(E element)
default R yield()
Copyright © 2022 MicroStream Software. All rights reserved.