LongAccumulator Constructors

Definition

Overloads

LongAccumulator(ILongBinaryOperator, Int64)

Creates a new instance using the given accumulator function and identity element.

LongAccumulator(IntPtr, JniHandleOwnership)

LongAccumulator(ILongBinaryOperator, Int64)

Creates a new instance using the given accumulator function and identity element.

[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

Parameters

accumulatorFunction
ILongBinaryOperator

a side-effect-free function of two arguments

identity
Int64

identity (initial value) for the accumulator function

Attributes

Remarks

Creates a new instance using the given accumulator function and identity element.

Java documentation for java.util.concurrent.atomic.LongAccumulator.LongAccumulator(java.util.function.LongBinaryOperator, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

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

Parameters

javaReference
IntPtr

nativeint

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to