## Uses of Interface
java.util.function.LongBinaryOperator

- Packages that use LongBinaryOperator
  Package | Description
  --- | ---
  java.util |
  java.util.stream | Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.

- - ### Uses of LongBinaryOperator in java.util

    Methods in java.util with parameters of type LongBinaryOperator
    Modifier and Type | Method and Description
    --- | ---
    `static void` | Arrays.`parallelPrefix(long[] array, int fromIndex, int toIndex, LongBinaryOperator op)` Performs `Arrays.parallelPrefix(long[], LongBinaryOperator)` for the given subrange of the array.
    `static void` | Arrays.`parallelPrefix(long[] array, LongBinaryOperator op)` Cumulates, in parallel, each element of the given array in place, using the supplied function.

  - ### Uses of LongBinaryOperator in java.util.stream

    Methods in java.util.stream with parameters of type LongBinaryOperator
    Modifier and Type | Method and Description
    --- | ---
    `OptionalLong` | LongStream.`reduce(LongBinaryOperator op)` Performs a reduction on the elements of this stream, using an associative accumulation function, and returns an `OptionalLong` describing the reduced value, if any.
    `long` | LongStream.`reduce(long identity, LongBinaryOperator op)` Performs a reduction on the elements of this stream, using the provided identity value and an associative accumulation function, and returns the reduced value.

Copyright © 2025 API Design. All Rights Reserved.