다음을 통해 공유


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

Parameters

parallelismThreshold
Int64

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

transformer
IToDoubleBiFunction

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 (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.reduceToDouble(long, java.util.function.ToDoubleBiFunction<? super K, ? super 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