Partager via


AtomicLongFieldUpdater.DecrementAndGet(Object) Method

Definition

Atomically decrements by one the current value of the field of the given object managed by this updater.

[Android.Runtime.Register("decrementAndGet", "(Ljava/lang/Object;)J", "GetDecrementAndGet_Ljava_lang_Object_Handler")]
public virtual long DecrementAndGet (Java.Lang.Object? obj);
[<Android.Runtime.Register("decrementAndGet", "(Ljava/lang/Object;)J", "GetDecrementAndGet_Ljava_lang_Object_Handler")>]
abstract member DecrementAndGet : Java.Lang.Object -> int64
override this.DecrementAndGet : Java.Lang.Object -> int64

Parameters

obj
Object

An object whose field to get and set

Returns

the updated value

Attributes

Remarks

Atomically decrements by one the current value of the field of the given object managed by this updater.

Java documentation for java.util.concurrent.atomic.AtomicLongFieldUpdater.decrementAndGet(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.

Applies to