public static final class ReductionUtil.VanillaReductionBuilder<E> extends Object implements Reduction.ReductionBuilder<E>
| Constructor and Description |
|---|
VanillaReductionBuilder(@NotNull DocumentExtractor<E> extractor) |
| 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. |
public VanillaReductionBuilder(@NotNull
@NotNull DocumentExtractor<E> extractor)
public <A,R> Reduction<R> collecting(@NotNull @NotNull Collector<E,A,? extends R> collector)
Reduction.ReductionBuildercollector.
The provided collector should be concurrent.
collecting in interface Reduction.ReductionBuilder<E>A - intermediate accumulation formR - Reduction typecollector - to use (non-null)Copyright © 2023. All rights reserved.