AtomicLongFieldUpdater.NewUpdater(Class, String) Method

Definition

Creates and returns an updater for objects with the given field.

[Android.Runtime.Register("newUpdater", "(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "U" })]
public static Java.Util.Concurrent.Atomic.AtomicLongFieldUpdater? NewUpdater (Java.Lang.Class? tclass, string? fieldName);
[<Android.Runtime.Register("newUpdater", "(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "U" })>]
static member NewUpdater : Java.Lang.Class * string -> Java.Util.Concurrent.Atomic.AtomicLongFieldUpdater

Parameters

tclass
Class

the class of the objects holding the field

fieldName
String

the name of the field to be updated

Returns

the updater

Attributes

Remarks

Creates and returns an updater for objects with the given field. The Class argument is needed to check that reflective types and generic types match.

Java documentation for java.util.concurrent.atomic.AtomicLongFieldUpdater.newUpdater(java.lang.Class<U>, java.lang.String).

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