Share via


ConcurrentHashMap.SearchEntries(Int64, IFunction) Method

Definition

Returns a non-null result from applying the given search function on each entry, or null if none.

[Android.Runtime.Register("searchEntries", "(JLjava/util/function/Function;)Ljava/lang/Object;", "GetSearchEntries_JLjava_util_function_Function_Handler", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "U" })]
public virtual Java.Lang.Object? SearchEntries (long parallelismThreshold, Java.Util.Functions.IFunction searchFunction);
[<Android.Runtime.Register("searchEntries", "(JLjava/util/function/Function;)Ljava/lang/Object;", "GetSearchEntries_JLjava_util_function_Function_Handler", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "U" })>]
abstract member SearchEntries : int64 * Java.Util.Functions.IFunction -> Java.Lang.Object
override this.SearchEntries : int64 * Java.Util.Functions.IFunction -> Java.Lang.Object

Parameters

parallelismThreshold
Int64

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

searchFunction
IFunction

a function returning a non-null result on success, else null

Returns

a non-null result from applying the given search function on each entry, or null if none

Attributes

Remarks

Returns a non-null result from applying the given search function on each entry, or null if none. Upon success, further element processing is suppressed and the results of any other parallel invocations of the search function are ignored.

Added in 1.8.

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