AtomicLongArray 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| AtomicLongArray(Int32) |
创建给定长度的新 AtomicLongArray,所有元素最初为零。 |
| AtomicLongArray(Int64[]) |
创建一个新的 AtomicLongArray,其长度与给定数组复制的所有元素相同。 |
| AtomicLongArray(IntPtr, JniHandleOwnership) |
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。 |
AtomicLongArray(Int32)
创建给定长度的新 AtomicLongArray,所有元素最初为零。
[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
参数
- length
- Int32
数组的长度
- 特性
注解
创建给定长度的新 AtomicLongArray,所有元素最初为零。
Java文档java.util.concurrent.atomic.AtomicLongArray.AtomicLongArray(int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
AtomicLongArray(Int64[])
创建一个新的 AtomicLongArray,其长度与给定数组复制的所有元素相同。
[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
参数
- array
- Int64[]
要从中复制元素的数组
- 特性
例外
如果数组为 null
注解
创建一个新的 AtomicLongArray,其长度与给定数组复制的所有元素相同。
Java文档java.util.concurrent.atomic.AtomicLongArray.AtomicLongArray(long[])。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
AtomicLongArray(IntPtr, JniHandleOwnership)
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。
protected AtomicLongArray(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.Atomic.AtomicLongArray : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.Atomic.AtomicLongArray
参数
- transfer
- JniHandleOwnership
指示 JniHandleOwnership如何处理 javaReference
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。