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

- Packages that use BiConsumer
  Package | Description
  --- | ---
  java.util |
  java.util.function | Functional interfaces provide target types for lambda expressions and method references.
  java.util.stream | Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.

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

    Methods in java.util with parameters of type BiConsumer
    Modifier and Type | Method and Description
    --- | ---
    `default void` | Map.`forEach(BiConsumer<? super K,? super V> action)` Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.

  - ### Uses of BiConsumer in java.util.function

    Methods in java.util.function that return BiConsumer
    Modifier and Type | Method and Description
    --- | ---
    `default BiConsumer<T,U>` | BiConsumer.`andThen(BiConsumer<? super T,? super U> after)` Returns a composed `BiConsumer` that performs, in sequence, this operation followed by the `after` operation.

    Methods in java.util.function with parameters of type BiConsumer
    Modifier and Type | Method and Description
    --- | ---
    `default BiConsumer<T,U>` | BiConsumer.`andThen(BiConsumer<? super T,? super U> after)` Returns a composed `BiConsumer` that performs, in sequence, this operation followed by the `after` operation.

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

    Methods in java.util.stream that return BiConsumer
    Modifier and Type | Method and Description
    --- | ---
    `BiConsumer<A,T>` | Collector.`accumulator()` A function that folds a value into a mutable result container.

    Methods in java.util.stream with parameters of type BiConsumer
    Modifier and Type | Method and Description
    --- | ---
    `<R> R` | Stream.`collect(Supplier<R> supplier, BiConsumer<R,? super T> accumulator, BiConsumer<R,R> combiner)` Performs a mutable reduction operation on the elements of this stream.
    `<R> R` | Stream.`collect(Supplier<R> supplier, BiConsumer<R,? super T> accumulator, BiConsumer<R,R> combiner)` Performs a mutable reduction operation on the elements of this stream.
    `<R> R` | DoubleStream.`collect(Supplier<R> supplier, ObjDoubleConsumer<R> accumulator, BiConsumer<R,R> combiner)` Performs a mutable reduction operation on the elements of this stream.
    `<R> R` | IntStream.`collect(Supplier<R> supplier, ObjIntConsumer<R> accumulator, BiConsumer<R,R> combiner)` Performs a mutable reduction operation on the elements of this stream.
    `<R> R` | LongStream.`collect(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R,R> combiner)` Performs a mutable reduction operation on the elements of this stream.
    `static <T,A,R> Collector<T,A,R>` | Collector.`of(Supplier<A> supplier, BiConsumer<A,T> accumulator, BinaryOperator<A> combiner, Function<A,R> finisher, Collector.Characteristics... characteristics)` Returns a new `Collector` described by the given `supplier`, `accumulator`, `combiner`, and `finisher` functions.
    `static <T,R> Collector<T,R,R>` | Collector.`of(Supplier<R> supplier, BiConsumer<R,T> accumulator, BinaryOperator<R> combiner, Collector.Characteristics... characteristics)` Returns a new `Collector` described by the given `supplier`, `accumulator`, and `combiner` functions.

Copyright © 2025 API Design. All Rights Reserved.