AtomicInteger.UpdateAndGet(IIntUnaryOperator) メソッド

定義

(によって VarHandle#compareAndSet指定されたメモリ効果を持つ) 現在の値を、指定された関数を適用した結果を使用してアトミックに更新し、更新された値を返します。

[Android.Runtime.Register("updateAndGet", "(Ljava/util/function/IntUnaryOperator;)I", "", ApiSince=24)]
public int UpdateAndGet (Java.Util.Functions.IIntUnaryOperator? updateFunction);
[<Android.Runtime.Register("updateAndGet", "(Ljava/util/function/IntUnaryOperator;)I", "", ApiSince=24)>]
member this.UpdateAndGet : Java.Util.Functions.IIntUnaryOperator -> int

パラメーター

updateFunction
IIntUnaryOperator

副作用のない関数

戻り値

更新された値

属性

注釈

java.util.concurrent.atomic.AtomicInteger.updateAndGet(java.util.function.IntUnaryOperator)Java ドキュメント。

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

適用対象