AtomicLongArray.UpdateAndGet(Int32, ILongUnaryOperator) メソッド

定義

指定された関数を適用した結果を使用して、インデックスi位置の 要素をアトミックに更新し(によってVarHandle#compareAndSet指定されたメモリ効果を持つ)、更新された値を返します。

[Android.Runtime.Register("updateAndGet", "(ILjava/util/function/LongUnaryOperator;)J", "", ApiSince=24)]
public long UpdateAndGet (int i, Java.Util.Functions.ILongUnaryOperator? updateFunction);
[<Android.Runtime.Register("updateAndGet", "(ILjava/util/function/LongUnaryOperator;)J", "", ApiSince=24)>]
member this.UpdateAndGet : int * Java.Util.Functions.ILongUnaryOperator -> int64

パラメーター

i
Int32

インデックス

updateFunction
ILongUnaryOperator

副作用のない関数

戻り値

更新された値

属性

注釈

java.util.concurrent.atomic.AtomicLongArray.updateAndGet(int, java.util.function.LongUnaryOperator)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象