T
- the type of input elements to the reduction operationA
- the mutable accumulation type of the reduction operationR
- the result type of the reduction operationpublic interface Collector<T,A,R>
Modifier and Type | Method and Description |
---|---|
BiConsumer<A,T> |
accumulator()
Function folds elements into container.
|
Function<A,R> |
finisher()
Function produces result by transforming intermediate type.
|
Supplier<A> |
supplier()
Function provides new containers.
|
BiConsumer<A,T> accumulator()
Supplier