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