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