Share via


AtomicReferenceFieldUpdater.NewUpdater(Class, Class, String) Method

Definition

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

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

Parameters

tclass
Class

the class of the objects holding the field

vclass
Class

the class of 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 arguments are needed to check that reflective types and generic types match.

Java documentation for java.util.concurrent.atomic.AtomicReferenceFieldUpdater.newUpdater(java.lang.Class<U>, java.lang.Class<W>, 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