AtomicReferenceFieldUpdater.NewUpdater(Class, Class, String) 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.
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.
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.