Share via


AtomicIntegerArray Constructors

Definition

Overloads

AtomicIntegerArray(Int32)

Creates a new AtomicIntegerArray of the given length, with all elements initially zero.

AtomicIntegerArray(Int32[])

Creates a new AtomicIntegerArray with the same length as, and all elements copied from, the given array.

AtomicIntegerArray(IntPtr, JniHandleOwnership)

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

AtomicIntegerArray(Int32)

Creates a new AtomicIntegerArray of the given length, with all elements initially zero.

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

Parameters

length
Int32

the length of the array

Attributes

Remarks

Creates a new AtomicIntegerArray of the given length, with all elements initially zero.

Java documentation for java.util.concurrent.atomic.AtomicIntegerArray.AtomicIntegerArray(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

AtomicIntegerArray(Int32[])

Creates a new AtomicIntegerArray with the same length as, and all elements copied from, the given array.

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

Parameters

array
Int32[]

the array to copy elements from

Attributes

Exceptions

if array is null

Remarks

Creates a new AtomicIntegerArray with the same length as, and all elements copied from, the given array.

Java documentation for java.util.concurrent.atomic.AtomicIntegerArray.AtomicIntegerArray(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

AtomicIntegerArray(IntPtr, JniHandleOwnership)

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

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

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