ConcurrentHashMap.ReduceToDouble Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.