ConcurrentHashMap.Reduce(Int64, IBiFunction, IBiFunction) 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, or null if none.
[Android.Runtime.Register("reduce", "(JLjava/util/function/BiFunction;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "GetReduce_JLjava_util_function_BiFunction_Ljava_util_function_BiFunction_Handler", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "U" })]
public virtual Java.Lang.Object? Reduce (long parallelismThreshold, Java.Util.Functions.IBiFunction transformer, Java.Util.Functions.IBiFunction reducer);
[<Android.Runtime.Register("reduce", "(JLjava/util/function/BiFunction;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "GetReduce_JLjava_util_function_BiFunction_Ljava_util_function_BiFunction_Handler", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "U" })>]
abstract member Reduce : int64 * Java.Util.Functions.IBiFunction * Java.Util.Functions.IBiFunction -> Java.Lang.Object
override this.Reduce : int64 * Java.Util.Functions.IBiFunction * Java.Util.Functions.IBiFunction -> Java.Lang.Object
Parameters
- parallelismThreshold
- Int64
the (estimated) number of elements needed for this operation to be executed in parallel
- transformer
- IBiFunction
a function returning the transformation for an element, or null if there is no transformation (in which case it is not combined)
- reducer
- IBiFunction
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, or null if none.
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.