public static final class ReductionUtil.VanillaLongReductionBuilder extends Object implements Reduction.LongReductionBuilder
| Constructor and Description |
|---|
VanillaLongReductionBuilder(@NotNull ToLongDocumentExtractor extractor) |
| Modifier and Type | Method and Description |
|---|---|
<A> Reduction<LongSupplier> |
reducing(@NotNull Supplier<A> supplier,
@NotNull ObjLongConsumer<A> accumulator,
@NotNull ToLongFunction<A> finisher)
Creates and returns a new Reduction of type LongSupplier using the provided
parameters.
|
public VanillaLongReductionBuilder(@NotNull
@NotNull ToLongDocumentExtractor extractor)
public <A> Reduction<LongSupplier> reducing(@NotNull @NotNull Supplier<A> supplier, @NotNull @NotNull ObjLongConsumer<A> accumulator, @NotNull @NotNull ToLongFunction<A> finisher)
Reduction.LongReductionBuilderreducing in interface Reduction.LongReductionBuilderA - intermediate accumulation form (must be concurrent)supplier - to use (non-null) to create the internal stateaccumulator - to use when merging long elements into the internal statefinisher - to use when extracting the result from the internal stateCopyright © 2023. All rights reserved.