インタフェース
java.util.function.IntBinaryOperatorの使用
-
IntBinaryOperatorを使用しているパッケージ パッケージ 説明 java.util コレクション・フレームワーク、国際化サポート・クラス、サービス・ローダー、プロパティ、乱数生成、文字列解析とスキャン・クラス、Base64エンコーディングとデコード、ビット配列、およびその他のユーティリティ・クラスが含まれています。java.util.concurrent 並行プログラミングでよく使用されるユーティリティ・クラスです。java.util.concurrent.atomic 単一の変数に対するロックフリーでスレッドセーフなプログラミングをサポートするクラスの小規模なツールキットです。java.util.stream コレクションに対するマップ-リデュース変換など、要素のストリームに対する関数型の操作をサポートするクラスです。 -
-
java.utilでのIntBinaryOperatorの使用
IntBinaryOperator型のパラメータを持つjava.utilのメソッド 修飾子と型 メソッド 説明 static void
Arrays. parallelPrefix(int[] array, int fromIndex, int toIndex, IntBinaryOperator op)
配列の指定された部分範囲に対してArrays.parallelPrefix(int[], IntBinaryOperator)
を実行します。static void
Arrays. parallelPrefix(int[] array, IntBinaryOperator op)
指定された関数を使用して、指定された配列の各要素をその場で並列に累積します。 -
java.util.concurrentでのIntBinaryOperatorの使用
IntBinaryOperator型のパラメータを持つjava.util.concurrentのメソッド 修飾子と型 メソッド 説明 int
ConcurrentHashMap. reduceEntriesToInt(long parallelismThreshold, ToIntFunction<Map.Entry<K,V>> transformer, int basis, IntBinaryOperator reducer)
指定されたリデューサを使用して値を結合し、指定された基準を識別値として使用して、すべてのエントリの指定された変換の累積結果を返します。int
ConcurrentHashMap. reduceKeysToInt(long parallelismThreshold, ToIntFunction<? super K> transformer, int basis, IntBinaryOperator reducer)
指定されたリデューサを使用して値を結合し、指定された基準を識別値として使用して、すべてのキーの指定された変換の累積結果を返します。int
ConcurrentHashMap. reduceToInt(long parallelismThreshold, ToIntBiFunction<? super K,? super V> transformer, int basis, IntBinaryOperator reducer)
指定されたリデューサを使用して値を結合し、指定された基準を識別値として使用して、すべての(キー、値)ペアの指定された変換の累積結果を返します。int
ConcurrentHashMap. reduceValuesToInt(long parallelismThreshold, ToIntFunction<? super V> transformer, int basis, IntBinaryOperator reducer)
指定されたリデューサを使用して値を結合し、指定された基準を識別値として使用して、すべての値の指定された変換の累積結果を返します。 -
java.util.concurrent.atomicでのIntBinaryOperatorの使用
IntBinaryOperator型のパラメータを持つjava.util.concurrent.atomicのメソッド 修飾子と型 メソッド 説明 int
AtomicInteger. accumulateAndGet(int x, IntBinaryOperator accumulatorFunction)
現在の値を現在の値と指定された値に適用した結果を原子的に更新し、更新された値を返します。int
AtomicIntegerArray. accumulateAndGet(int i, int x, IntBinaryOperator accumulatorFunction)
インデックスi
の要素を現在の値と指定された値に適用した結果を原子的に更新し、更新された値を返します。int
AtomicIntegerFieldUpdater. accumulateAndGet(T obj, int x, IntBinaryOperator accumulatorFunction)
このアップ・データによって管理される指定されたオブジェクトのフィールドを、現在および指定された値に指定された関数を適用した結果で更新し、更新された値を返すことを原子的に更新します。int
AtomicInteger. getAndAccumulate(int x, IntBinaryOperator accumulatorFunction)
現在の値を現在の値と与えられた値に適用した結果を元に戻し、前の値を返すことで、現在の値を原子的に更新します。int
AtomicIntegerArray. getAndAccumulate(int i, int x, IntBinaryOperator accumulatorFunction)
インデックスi
の要素を現在の値と与えられた値に適用した結果を原子的に更新し、前の値を返します。int
AtomicIntegerFieldUpdater. getAndAccumulate(T obj, int x, IntBinaryOperator accumulatorFunction)
指定された関数を現在の値と指定された値に適用して前の値を返す結果で、このアップ・データによって管理される指定されたオブジェクトのフィールドを非アクティブに更新します。 -
java.util.streamでのIntBinaryOperatorの使用
IntBinaryOperator型のパラメータを持つjava.util.streamのメソッド 修飾子と型 メソッド 説明 int
IntStream. reduce(int identity, IntBinaryOperator op)
OptionalInt
IntStream. reduce(IntBinaryOperator op)
-