インタフェース
java.util.function.BiConsumerの使用
BiConsumerを使用するパッケージ
パッケージ
説明
セキュリティ・フレームワークのクラスとインタフェースを提供します。
コレクション・フレームワーク、国際化サポート・クラス、サービス・ローダー、プロパティ、乱数生成、文字列解析とスキャン・クラス、Base64エンコーディングとデコード、ビット配列、およびその他のユーティリティ・クラスが含まれています。
並行プログラミングでよく使用されるユーティリティ・クラスです。
関数型インタフェースは、ラムダ式やメソッド参照のターゲットとなる型を提供します。
コレクションに対するマップ-リデュース変換など、要素のストリームに対する関数型の操作をサポートするクラスです。
このパッケージは、jarファイルに署名するためのAPIを定義します。
-
java.securityでのBiConsumerの使用
型BiConsumerのパラメータを持つjava.securityのメソッド -
java.utilでのBiConsumerの使用
型BiConsumerのパラメータを持つjava.utilのメソッド修飾子と型メソッド説明default void
Map.forEach
(BiConsumer<? super K, ? super V> action) このマップのすべてのエントリの処理が完了するかアクションから例外がスローされるまで、各エントリに対して指定されたアクションを実行します。 -
java.util.concurrentでのBiConsumerの使用
型BiConsumerのパラメータを持つjava.util.concurrentのメソッド修飾子と型メソッド説明void
ConcurrentHashMap.forEach
(long parallelismThreshold, BiConsumer<? super K, ? super V> action) 各(key, value)に対して指定されたアクションを実行します。default void
ConcurrentMap.forEach
(BiConsumer<? super K, ? super V> action) このマップのすべてのエントリの処理が完了するかアクションから例外がスローされるまで、各エントリに対して指定されたアクションを実行します。<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) このステージと指定された他のステージの両方が正常終了した際に実行される新しいCompletionStageを返します(実行時には、指定されたアクションの引数として2つの結果が使用される)。<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) これと他のステージが両方とも正常に完了したときに、このステージのデフォルトの非同期実行ファシリティを使用して実行され、2つの結果が指定されたアクションの引数として実行される新しいCompletionStageを返します。<U> CompletionStage<Void>
CompletionStage.thenAcceptBothAsync
(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action, Executor executor) これと他のステージが両方とも正常に完了したときに、指定されたエグゼキュータを使用して実行され、2つの結果が指定されたアクションの引数として実行される新しいCompletionStageを返します。CompletableFuture.whenComplete
(BiConsumer<? super T, ? super Throwable> action) CompletionStage.whenComplete
(BiConsumer<? super T, ? super Throwable> action) このステージが完了したときに指定されたアクションを実行するこのステージと同じ結果または例外を使用して新しいCompletionStageを返します。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) このステージが完了したときに、このステージのデフォルトの非同期実行機能を使用して指定されたアクションを実行するこのステージと同じ結果または例外を使用して新しいCompletionStageを返します。CompletionStage.whenCompleteAsync
(BiConsumer<? super T, ? super Throwable> action, Executor executor) このステージが完了したときに、指定されたExecutorを使用して指定されたアクションを実行するこのステージと同じ結果または例外を使用して新しいCompletionStageを返します。型BiConsumerのパラメータを持つjava.util.concurrentのコンストラクタ修飾子コンストラクタ説明SubmissionPublisher
(Executor executor, int maxBufferCapacity, BiConsumer<? super Flow.Subscriber<? super T>, ? super Throwable> handler) 各サブスクライバに対して指定された最大バッファ・サイズでサブスクライバへの非同期配信用に、指定されたExecutorを使用して新しいSubmissionPublisherを作成し、非nullの場合、サブスクライバがonNext
メソッドで例外をスローしたときに呼び出されます。 -
java.util.functionでのBiConsumerの使用
BiConsumerを返すjava.util.functionのメソッド修飾子と型メソッド説明default BiConsumer<T,
U> BiConsumer.andThen
(BiConsumer<? super T, ? super U> after) このオペレーションを実行した後、続けてafter
オペレーションを実行する合成BiConsumer
を返します。型BiConsumerのパラメータを持つjava.util.functionのメソッド修飾子と型メソッド説明default BiConsumer<T,
U> BiConsumer.andThen
(BiConsumer<? super T, ? super U> after) このオペレーションを実行した後、続けてafter
オペレーションを実行する合成BiConsumer
を返します。 -
java.util.streamでのBiConsumerの使用
BiConsumerを返すjava.util.streamのメソッド型BiConsumerのパラメータを持つjava.util.streamのメソッド修飾子と型メソッド説明<R> R
DoubleStream.collect
(Supplier<R> supplier, ObjDoubleConsumer<R> accumulator, BiConsumer<R, R> combiner) このストリームの要素に対して可変リダクション操作を実行します。<R> R
IntStream.collect
(Supplier<R> supplier, ObjIntConsumer<R> accumulator, BiConsumer<R, R> combiner) このストリームの要素に対して可変リダクション操作を実行します。<R> R
LongStream.collect
(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R, R> combiner) このストリームの要素に対して可変リダクション操作を実行します。<R> R
Stream.collect
(Supplier<R> supplier, BiConsumer<R, ? super T> accumulator, BiConsumer<R, R> combiner) このストリームの要素に対して可変リダクション操作を実行します。default <R> Stream<R>
Stream.mapMulti
(BiConsumer<? super T, ? super Consumer<R>> mapper) このストリームの各要素を複数の要素(特にゼロ個以上の要素)で置き換えた結果で構成されるストリームを返します。default DoubleStream
Stream.mapMultiToDouble
(BiConsumer<? super T, ? super DoubleConsumer> mapper) このストリームの各要素を複数の要素(特にゼロ個以上の要素)で置き換えた結果で構成されるDoubleStream
を返します。default IntStream
Stream.mapMultiToInt
(BiConsumer<? super T, ? super IntConsumer> mapper) このストリームの各要素を複数の要素(特にゼロ個以上の要素)で置き換えた結果で構成されるIntStream
を返します。default LongStream
Stream.mapMultiToLong
(BiConsumer<? super T, ? super LongConsumer> mapper) このストリームの各要素を複数の要素(特にゼロ個以上の要素)で置き換えた結果で構成されるLongStream
を返します。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) 指定されたsupplier
、accumulator
、combiner
、およびfinisher
関数で記述される新しいCollector
を返します。static <T,
R> Collector<T, R, R> Collector.of
(Supplier<R> supplier, BiConsumer<R, T> accumulator, BinaryOperator<R> combiner, Collector.Characteristics... characteristics) 指定されたsupplier
、accumulator
、およびcombiner
関数で記述される新しいCollector
を返します。 -
jdk.security.jarsignerでのBiConsumerの使用
型BiConsumerのパラメータを持つjdk.security.jarsignerのメソッド修飾子と型メソッド説明JarSigner.Builder.eventHandler
(BiConsumer<String, String> handler) 署名プロセス中にJarEntry
を追加、署名、または更新するときにトリガーされるイベント・ハンドラを設定します。