AtomicLongFieldUpdater.IncrementAndGet(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Atomically increments by one the current value of the field of the given object managed by this updater.
[Android.Runtime.Register("incrementAndGet", "(Ljava/lang/Object;)J", "GetIncrementAndGet_Ljava_lang_Object_Handler")]
public virtual long IncrementAndGet (Java.Lang.Object? obj);
[<Android.Runtime.Register("incrementAndGet", "(Ljava/lang/Object;)J", "GetIncrementAndGet_Ljava_lang_Object_Handler")>]
abstract member IncrementAndGet : Java.Lang.Object -> int64
override this.IncrementAndGet : Java.Lang.Object -> int64
Parameters
- obj
- Object
An object whose field to get and set
Returns
the updated value
- Attributes
Remarks
Atomically increments by one the current value of the field of the given object managed by this updater.
Java documentation for java.util.concurrent.atomic.AtomicLongFieldUpdater.incrementAndGet(T)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.