ConcurrentHashMap.ReduceToLong Method

Definition

Returns the result of accumulating the given transformation of all (key, value) pairs using the given reducer to combine values, and the given basis as an identity value.

[Android.Runtime.Register("reduceToLong", "(JLjava/util/function/ToLongBiFunction;JLjava/util/function/LongBinaryOperator;)J", "GetReduceToLong_JLjava_util_function_ToLongBiFunction_JLjava_util_function_LongBinaryOperator_Handler", ApiSince=24)]
public virtual long ReduceToLong (long parallelismThreshold, Java.Util.Functions.IToLongBiFunction transformer, long basis, Java.Util.Functions.ILongBinaryOperator reducer);
[<Android.Runtime.Register("reduceToLong", "(JLjava/util/function/ToLongBiFunction;JLjava/util/function/LongBinaryOperator;)J", "GetReduceToLong_JLjava_util_function_ToLongBiFunction_JLjava_util_function_LongBinaryOperator_Handler", ApiSince=24)>]
abstract member ReduceToLong : int64 * Java.Util.Functions.IToLongBiFunction * int64 * Java.Util.Functions.ILongBinaryOperator -> int64
override this.ReduceToLong : int64 * Java.Util.Functions.IToLongBiFunction * int64 * Java.Util.Functions.ILongBinaryOperator -> int64

Parameters

parallelismThreshold
Int64

the (estimated) number of elements needed for this operation to be executed in parallel

transformer
IToLongBiFunction

a function returning the transformation for an element

basis
Int64

the identity (initial default value) for the reduction

reducer
ILongBinaryOperator

a commutative associative combining function

Returns

the result of accumulating the given transformation of all (key, value) pairs

Attributes

Remarks

Returns the result of accumulating the given transformation of all (key, value) pairs using the given reducer to combine values, and the given basis as an identity value.

Added in 1.8.

Java documentation for java.util.concurrent.ConcurrentHashMap.reduceToLong(long, java.util.function.ToLongBiFunction<? super K, ? super V>, long, java.util.function.LongBinaryOperator).

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