Share via


AtomicReferenceArray Constructors

Definition

Overloads

AtomicReferenceArray(Object[])

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

AtomicReferenceArray(Int32)

Creates a new AtomicReferenceArray of the given length, with all elements initially null.

AtomicReferenceArray(IntPtr, JniHandleOwnership)

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

AtomicReferenceArray(Object[])

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

[Android.Runtime.Register(".ctor", "([Ljava/lang/Object;)V", "")]
public AtomicReferenceArray (Java.Lang.Object[]? array);
[<Android.Runtime.Register(".ctor", "([Ljava/lang/Object;)V", "")>]
new Java.Util.Concurrent.Atomic.AtomicReferenceArray : Java.Lang.Object[] -> Java.Util.Concurrent.Atomic.AtomicReferenceArray

Parameters

array
Object[]

the array to copy elements from

Attributes

Remarks

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

Java documentation for java.util.concurrent.atomic.AtomicReferenceArray.AtomicReferenceArray(E[]).

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

AtomicReferenceArray(Int32)

Creates a new AtomicReferenceArray of the given length, with all elements initially null.

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

Parameters

length
Int32

the length of the array

Attributes

Remarks

Creates a new AtomicReferenceArray of the given length, with all elements initially null.

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

AtomicReferenceArray(IntPtr, JniHandleOwnership)

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

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

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