语言

LongAccumulator 构造函数

定义

重载

名称 说明
LongAccumulator(ILongBinaryOperator, Int64)

使用给定的累加器函数和标识元素创建一个新实例。

LongAccumulator(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

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

累加器函数的标识(初始值)

特性

注解

使用给定的累加器函数和标识元素创建一个新实例。

Java文档java.util.concurrent.atomic.LongAccumulator.LongAccumulator(java.util.function.LongBinaryOperator, long)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

LongAccumulator(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

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

IntPtr一个包含Java本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于