public static interface Reduction.ReductionBuilder<E>
| Modifier and Type | Method and Description |
|---|---|
<A,R> Reduction<R> |
collecting(@NotNull Collector<E,A,? extends R> collector)
Creates and returns a new Reduction of type R using the provided
collector. |
<A,R> Reduction<R> collecting(@NotNull @NotNull Collector<E,A,? extends R> collector)
collector.
The provided collector should be concurrent.
A - intermediate accumulation formR - Reduction typecollector - to use (non-null)NullPointerException - if the provided collector is nullCopyright © 2023. All rights reserved.