ConcurrentHashMap.ReduceKeysToDouble Method

Definition

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

[Android.Runtime.Register("reduceKeysToDouble", "(JLjava/util/function/ToDoubleFunction;DLjava/util/function/DoubleBinaryOperator;)D", "GetReduceKeysToDouble_JLjava_util_function_ToDoubleFunction_DLjava_util_function_DoubleBinaryOperator_Handler", ApiSince=24)]
public virtual double ReduceKeysToDouble (long parallelismThreshold, Java.Util.Functions.IToDoubleFunction transformer, double basis, Java.Util.Functions.IDoubleBinaryOperator reducer);
[<Android.Runtime.Register("reduceKeysToDouble", "(JLjava/util/function/ToDoubleFunction;DLjava/util/function/DoubleBinaryOperator;)D", "GetReduceKeysToDouble_JLjava_util_function_ToDoubleFunction_DLjava_util_function_DoubleBinaryOperator_Handler", ApiSince=24)>]
abstract member ReduceKeysToDouble : int64 * Java.Util.Functions.IToDoubleFunction * double * Java.Util.Functions.IDoubleBinaryOperator -> double
override this.ReduceKeysToDouble : int64 * Java.Util.Functions.IToDoubleFunction * double * Java.Util.Functions.IDoubleBinaryOperator -> double

Parameters

parallelismThreshold
Int64

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

transformer
IToDoubleFunction

a function returning the transformation for an element

basis
Double

the identity (initial default value) for the reduction

reducer
IDoubleBinaryOperator

a commutative associative combining function

Returns

the result of accumulating the given transformation of all keys

Attributes

Remarks

Returns the result of accumulating the given transformation of all keys 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.reduceKeysToDouble(long, java.util.function.ToDoubleFunction<? super K>, double, java.util.function.DoubleBinaryOperator).

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