語言

LongAccumulator 建構函式

定義

多載

名稱 Description
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)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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

IntPtrA 包含一個 Java 原生介面(JNI)物件參考。

transfer
JniHandleOwnership

JniHandleOwnershipA 指示如何處理javaReference

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於