public static interface Reduction.DoubleReductionBuilder
| 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.
|
<A> Reduction<DoubleSupplier> reducing(@NotNull @NotNull Supplier<A> supplier, @NotNull @NotNull ObjDoubleConsumer<A> accumulator, @NotNull @NotNull ToDoubleFunction<A> finisher)
A - 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 stateNullPointerException - if any of the provided parameters are nullCopyright © 2023. All rights reserved.