Share via


AtomicInteger Constructors

Definition

Overloads

AtomicInteger()

Creates a new AtomicInteger with initial value 0.

AtomicInteger(Int32)

Creates a new AtomicInteger with the given initial value.

AtomicInteger(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

AtomicInteger()

Creates a new AtomicInteger with initial value 0.

[Android.Runtime.Register(".ctor", "()V", "")]
public AtomicInteger ();
Attributes

Remarks

Creates a new AtomicInteger with initial value 0.

Java documentation for java.util.concurrent.atomic.AtomicInteger.AtomicInteger().

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

AtomicInteger(Int32)

Creates a new AtomicInteger with the given initial value.

[Android.Runtime.Register(".ctor", "(I)V", "")]
public AtomicInteger (int initialValue);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Java.Util.Concurrent.Atomic.AtomicInteger : int -> Java.Util.Concurrent.Atomic.AtomicInteger

Parameters

initialValue
Int32

the initial value

Attributes

Remarks

Creates a new AtomicInteger with the given initial value.

Java documentation for java.util.concurrent.atomic.AtomicInteger.AtomicInteger(int).

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

AtomicInteger(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected AtomicInteger (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.Atomic.AtomicInteger : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.Atomic.AtomicInteger

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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