LongAccumulator 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | 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
累加器函數的單位元(初始值)
- 屬性
備註
使用給定的累加器函數和恆等元素建立一個新實例。
本頁部分內容為基於 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
參數
- transfer
- JniHandleOwnership
JniHandleOwnershipA 指示如何處理javaReference
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。