AtomicInteger.GetAndAccumulate(Int32, IIntBinaryOperator) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定された関数を現在の値と指定された値に適用し、前の値を返した結果を使用して、現在の値をアトミックに更新します (で VarHandle#compareAndSet
指定されたメモリ効果を使用)。
[Android.Runtime.Register("getAndAccumulate", "(ILjava/util/function/IntBinaryOperator;)I", "", ApiSince=24)]
public int GetAndAccumulate (int x, Java.Util.Functions.IIntBinaryOperator? accumulatorFunction);
[<Android.Runtime.Register("getAndAccumulate", "(ILjava/util/function/IntBinaryOperator;)I", "", ApiSince=24)>]
member this.GetAndAccumulate : int * Java.Util.Functions.IIntBinaryOperator -> int
パラメーター
- x
- Int32
更新値
- accumulatorFunction
- IIntBinaryOperator
2 つの引数の副作用のない関数
戻り値
前の値
- 属性
注釈
このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。