ConcurrentHashMap.ReduceEntriesToDouble Method

Definition

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

[Android.Runtime.Register("reduceEntriesToDouble", "(JLjava/util/function/ToDoubleFunction;DLjava/util/function/DoubleBinaryOperator;)D", "GetReduceEntriesToDouble_JLjava_util_function_ToDoubleFunction_DLjava_util_function_DoubleBinaryOperator_Handler", ApiSince=24)]
public virtual double ReduceEntriesToDouble (long parallelismThreshold, Java.Util.Functions.IToDoubleFunction transformer, double basis, Java.Util.Functions.IDoubleBinaryOperator reducer);
[<Android.Runtime.Register("reduceEntriesToDouble", "(JLjava/util/function/ToDoubleFunction;DLjava/util/function/DoubleBinaryOperator;)D", "GetReduceEntriesToDouble_JLjava_util_function_ToDoubleFunction_DLjava_util_function_DoubleBinaryOperator_Handler", ApiSince=24)>]
abstract member ReduceEntriesToDouble : int64 * Java.Util.Functions.IToDoubleFunction * double * Java.Util.Functions.IDoubleBinaryOperator -> double
override this.ReduceEntriesToDouble : 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 entries

Attributes

Remarks

Returns the result of accumulating the given transformation of all entries 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.reduceEntriesToDouble(long, java.util.function.ToDoubleFunction<java.util.Map.Entry<K, V>>, 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