public static final class ReductionUtil.VanillaDoubleReductionBuilder extends Object implements Reduction.DoubleReductionBuilder
| Constructor and Description |
|---|
VanillaDoubleReductionBuilder(@NotNull ToDoubleDocumentExtractor extractor) |
| Modifier and Type | Method and Description |
|---|---|
<A> Reduction<DoubleSupplier> |
reducing(@NotNull Supplier<A> supplier,
@NotNull ObjDoubleConsumer<A> accumulator,
@NotNull ToDoubleFunction<A> finisher)
Creates and returns a new Reduction of type DoubleSupplier using the provided
parameters.
|
public VanillaDoubleReductionBuilder(@NotNull
@NotNull ToDoubleDocumentExtractor extractor)
public <A> Reduction<DoubleSupplier> reducing(@NotNull @NotNull Supplier<A> supplier, @NotNull @NotNull ObjDoubleConsumer<A> accumulator, @NotNull @NotNull ToDoubleFunction<A> finisher)
Reduction.DoubleReductionBuilderreducing in interface Reduction.DoubleReductionBuilderA - intermediate accumulation form (must be concurrent)supplier - to use (non-null) to create the internal stateaccumulator - to use when merging double elements into the internal statefinisher - to use when extracting the result from the internal stateCopyright © 2023. All rights reserved.