共用方式為


AtomicLongArray Constructors

Definition

Overloads

AtomicLongArray(Int32)

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

AtomicLongArray(Int64[])

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

AtomicLongArray(IntPtr, JniHandleOwnership)

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

AtomicLongArray(Int32)

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

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

Parameters

length
Int32

the length of the array

Attributes

Remarks

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

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

AtomicLongArray(Int64[])

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

[Android.Runtime.Register(".ctor", "([J)V", "")]
public AtomicLongArray (long[]? array);
[<Android.Runtime.Register(".ctor", "([J)V", "")>]
new Java.Util.Concurrent.Atomic.AtomicLongArray : int64[] -> Java.Util.Concurrent.Atomic.AtomicLongArray

Parameters

array
Int64[]

the array to copy elements from

Attributes

Exceptions

if array is null

Remarks

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

Java documentation for java.util.concurrent.atomic.AtomicLongArray.AtomicLongArray(long[]).

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

AtomicLongArray(IntPtr, JniHandleOwnership)

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

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

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