Uses of Interface
java.util.function.BiConsumer
Packages that use BiConsumer
Package
Description
Provides the classes and interfaces for the security framework.
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
Functional interfaces provide target types for lambda expressions
and method references.
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
This package defines APIs for signing jar files.
-
Uses of BiConsumer in java.security
Methods in java.security with parameters of type BiConsumerModifier and TypeMethodDescriptionvoid
Provider.forEach
(BiConsumer<? super Object, ? super Object> action) -
Uses of BiConsumer in java.util
Methods in java.util with parameters of type BiConsumerModifier and TypeMethodDescriptiondefault 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.concurrent
Methods in java.util.concurrent with parameters of type BiConsumerModifier and TypeMethodDescriptionvoid
ConcurrentHashMap.forEach
(long parallelismThreshold, BiConsumer<? super K, ? super V> action) Performs the given bulk action for each (key, value).default void
ConcurrentMap.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.<U> CompletableFuture
<Void> CompletableFuture.thenAcceptBoth
(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) <U> CompletionStage
<Void> CompletionStage.thenAcceptBoth
(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) Returns a new CompletionStage that, whenthis
and the other given stage both complete normally, is executed with the two results as arguments to the supplied action.<U> CompletableFuture
<Void> CompletableFuture.thenAcceptBothAsync
(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) <U> CompletableFuture
<Void> CompletableFuture.thenAcceptBothAsync
(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action, Executor executor) <U> CompletionStage
<Void> CompletionStage.thenAcceptBothAsync
(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) Returns a new CompletionStage that, whenthis
and the other given stage both complete normally, is executed usingthis
stage's default asynchronous execution facility, with the two results as arguments to the supplied action.<U> CompletionStage
<Void> CompletionStage.thenAcceptBothAsync
(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action, Executor executor) Returns a new CompletionStage that, whenthis
and the other given stage both complete normally, is executed using the supplied executor, with the two results as arguments to the supplied action.CompletableFuture.whenComplete
(BiConsumer<? super T, ? super Throwable> action) CompletionStage.whenComplete
(BiConsumer<? super T, ? super Throwable> action) Returns a new CompletionStage with the same result or exception asthis
stage, that executes the given action whenthis
stage completes.CompletableFuture.whenCompleteAsync
(BiConsumer<? super T, ? super Throwable> action) CompletableFuture.whenCompleteAsync
(BiConsumer<? super T, ? super Throwable> action, Executor executor) CompletionStage.whenCompleteAsync
(BiConsumer<? super T, ? super Throwable> action) Returns a new CompletionStage with the same result or exception asthis
stage, that executes the given action usingthis
stage's default asynchronous execution facility whenthis
stage completes.CompletionStage.whenCompleteAsync
(BiConsumer<? super T, ? super Throwable> action, Executor executor) Returns a new CompletionStage with the same result or exception asthis
stage, that executes the given action using the supplied Executor whenthis
stage completes.Constructors in java.util.concurrent with parameters of type BiConsumerModifierConstructorDescriptionSubmissionPublisher
(Executor executor, int maxBufferCapacity, BiConsumer<? super Flow.Subscriber<? super T>, ? super Throwable> handler) Creates a new SubmissionPublisher using the given Executor for async delivery to subscribers, with the given maximum buffer size for each subscriber, and, if non-null, the given handler invoked when any Subscriber throws an exception in methodonNext
. -
Uses of BiConsumer in java.util.function
Methods in java.util.function that return BiConsumerModifier and TypeMethodDescriptiondefault BiConsumer
<T, U> BiConsumer.andThen
(BiConsumer<? super T, ? super U> after) Returns a composedBiConsumer
that performs, in sequence, this operation followed by theafter
operation.Methods in java.util.function with parameters of type BiConsumerModifier and TypeMethodDescriptiondefault BiConsumer
<T, U> BiConsumer.andThen
(BiConsumer<? super T, ? super U> after) Returns a composedBiConsumer
that performs, in sequence, this operation followed by theafter
operation. -
Uses of BiConsumer in java.util.stream
Methods in java.util.stream that return BiConsumerModifier and TypeMethodDescriptionBiConsumer
<A, T> Collector.accumulator()
A function that folds a value into a mutable result container.static <A,
R> BiConsumer <A, Gatherer.Downstream<? super R>> Gatherer.defaultFinisher()
Returns afinisher
which is the default finisher of aGatherer
.default BiConsumer
<A, Gatherer.Downstream<? super R>> Gatherer.finisher()
A function which accepts the final intermediate state and aGatherer.Downstream
object, allowing to perform a final action at the end of input elements.Methods in java.util.stream with parameters of type BiConsumerModifier and TypeMethodDescription<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.<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.default <R> Stream
<R> Stream.mapMulti
(BiConsumer<? super T, ? super Consumer<R>> mapper) Returns a stream consisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.default DoubleStream
Stream.mapMultiToDouble
(BiConsumer<? super T, ? super DoubleConsumer> mapper) Returns aDoubleStream
consisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.default IntStream
Stream.mapMultiToInt
(BiConsumer<? super T, ? super IntConsumer> mapper) Returns anIntStream
consisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.default LongStream
Stream.mapMultiToLong
(BiConsumer<? super T, ? super LongConsumer> mapper) Returns aLongStream
consisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.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 newCollector
described by the givensupplier
,accumulator
,combiner
, andfinisher
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 newCollector
described by the givensupplier
,accumulator
, andcombiner
functions.static <T,
A, R> Gatherer <T, A, R> Gatherer.of
(Supplier<A> initializer, Gatherer.Integrator<A, T, R> integrator, BinaryOperator<A> combiner, BiConsumer<A, Gatherer.Downstream<? super R>> finisher) Returns a new, parallelizable,Gatherer
described by the giveninitializer
,integrator
,combiner
andfinisher
.Gatherer.of
(Gatherer.Integrator<Void, T, R> integrator, BiConsumer<Void, Gatherer.Downstream<? super R>> finisher) Returns a new, parallelizable, and statelessGatherer
described by the givenintegrator
andfinisher
.static <T,
A, R> Gatherer <T, A, R> Gatherer.ofSequential
(Supplier<A> initializer, Gatherer.Integrator<A, T, R> integrator, BiConsumer<A, Gatherer.Downstream<? super R>> finisher) Returns a new, sequential,Gatherer
described by the giveninitializer
,integrator
, andfinisher
.Gatherer.ofSequential
(Gatherer.Integrator<Void, T, R> integrator, BiConsumer<Void, Gatherer.Downstream<? super R>> finisher) Returns a new, sequential, and statelessGatherer
described by the givenintegrator
andfinisher
. -
Uses of BiConsumer in jdk.security.jarsigner
Methods in jdk.security.jarsigner with parameters of type BiConsumerModifier and TypeMethodDescriptionJarSigner.Builder.eventHandler
(BiConsumer<String, String> handler) Sets en event handler that will be triggered when aJarEntry
is to be added, signed, or updated during the signing process.