ConcurrentHashMap.ReduceValues Method

Definition

Overloads

ReduceValues(Int64, IFunction, IBiFunction)

Returns the result of accumulating the given transformation of all values using the given reducer to combine values, or null if none.

ReduceValues(Int64, IBiFunction)

Returns the result of accumulating all values using the given reducer to combine values, or null if none.

ReduceValues(Int64, IFunction, IBiFunction)

Returns the result of accumulating the given transformation of all values using the given reducer to combine values, or null if none.

[Android.Runtime.Register("reduceValues", "(JLjava/util/function/Function;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "GetReduceValues_JLjava_util_function_Function_Ljava_util_function_BiFunction_Handler", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "U" })]
public virtual Java.Lang.Object? ReduceValues (long parallelismThreshold, Java.Util.Functions.IFunction transformer, Java.Util.Functions.IBiFunction reducer);
[<Android.Runtime.Register("reduceValues", "(JLjava/util/function/Function;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "GetReduceValues_JLjava_util_function_Function_Ljava_util_function_BiFunction_Handler", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "U" })>]
abstract member ReduceValues : int64 * Java.Util.Functions.IFunction * Java.Util.Functions.IBiFunction -> Java.Lang.Object
override this.ReduceValues : int64 * Java.Util.Functions.IFunction * 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
IFunction

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 values

Attributes

Remarks

Returns the result of accumulating the given transformation of all values using the given reducer to combine values, or null if none.

Added in 1.8.

Java documentation for java.util.concurrent.ConcurrentHashMap.reduceValues(long, java.util.function.Function<? super V, ? extends U>, java.util.function.BiFunction<? super U, ? super U, ? extends U>).

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

ReduceValues(Int64, IBiFunction)

Returns the result of accumulating all values using the given reducer to combine values, or null if none.

[Android.Runtime.Register("reduceValues", "(JLjava/util/function/BiFunction;)Ljava/lang/Object;", "GetReduceValues_JLjava_util_function_BiFunction_Handler", ApiSince=24)]
public virtual Java.Lang.Object? ReduceValues (long parallelismThreshold, Java.Util.Functions.IBiFunction reducer);
[<Android.Runtime.Register("reduceValues", "(JLjava/util/function/BiFunction;)Ljava/lang/Object;", "GetReduceValues_JLjava_util_function_BiFunction_Handler", ApiSince=24)>]
abstract member ReduceValues : int64 * Java.Util.Functions.IBiFunction -> Java.Lang.Object
override this.ReduceValues : int64 * Java.Util.Functions.IBiFunction -> Java.Lang.Object

Parameters

parallelismThreshold
Int64

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

reducer
IBiFunction

a commutative associative combining function

Returns

the result of accumulating all values

Attributes

Remarks

Returns the result of accumulating all values using the given reducer to combine values, or null if none.

Added in 1.8.

Java documentation for java.util.concurrent.ConcurrentHashMap.reduceValues(long, java.util.function.BiFunction<? super V, ? super V, ? extends V>).

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