LongAccumulator 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| LongAccumulator(ILongBinaryOperator, Int64) |
使用给定的累加器函数和标识元素创建一个新实例。 |
| LongAccumulator(IntPtr, JniHandleOwnership) |
LongAccumulator(ILongBinaryOperator, Int64)
使用给定的累加器函数和标识元素创建一个新实例。
[Android.Runtime.Register(".ctor", "(Ljava/util/function/LongBinaryOperator;J)V", "", ApiSince=24)]
public LongAccumulator(Java.Util.Functions.ILongBinaryOperator? accumulatorFunction, long identity);
[<Android.Runtime.Register(".ctor", "(Ljava/util/function/LongBinaryOperator;J)V", "", ApiSince=24)>]
new Java.Util.Concurrent.Atomic.LongAccumulator : Java.Util.Functions.ILongBinaryOperator * int64 -> Java.Util.Concurrent.Atomic.LongAccumulator
参数
- accumulatorFunction
- ILongBinaryOperator
两个参数的无副作用函数
- identity
- Int64
累加器函数的标识(初始值)
- 属性
注解
使用给定的累加器函数和标识元素创建一个新实例。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
LongAccumulator(IntPtr, JniHandleOwnership)
protected LongAccumulator(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.Atomic.LongAccumulator : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.Atomic.LongAccumulator
参数
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。