Share via


ConcurrentHashMap.ReduceEntries Method

Definition

Overloads

ReduceEntries(Int64, IBiFunction)

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

ReduceEntries(Int64, IFunction, IBiFunction)

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

ReduceEntries(Int64, IBiFunction)

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

[Android.Runtime.Register("reduceEntries", "(JLjava/util/function/BiFunction;)Ljava/util/Map$Entry;", "GetReduceEntries_JLjava_util_function_BiFunction_Handler", ApiSince=24)]
public virtual Java.Util.IMapEntry? ReduceEntries (long parallelismThreshold, Java.Util.Functions.IBiFunction reducer);
[<Android.Runtime.Register("reduceEntries", "(JLjava/util/function/BiFunction;)Ljava/util/Map$Entry;", "GetReduceEntries_JLjava_util_function_BiFunction_Handler", ApiSince=24)>]
abstract member ReduceEntries : int64 * Java.Util.Functions.IBiFunction -> Java.Util.IMapEntry
override this.ReduceEntries : int64 * Java.Util.Functions.IBiFunction -> Java.Util.IMapEntry

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 entries

Attributes

Remarks

Java documentation for java.util.concurrent.ConcurrentHashMap.reduceEntries(long, java.util.function.BiFunction).

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

ReduceEntries(Int64, IFunction, IBiFunction)

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

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

Attributes

Remarks

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

Added in 1.8.

Java documentation for java.util.concurrent.ConcurrentHashMap.reduceEntries(long, java.util.function.Function<java.util.Map.Entry<K, 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