ConcurrentHashMap.SearchKeys(Int64, IFunction) Method

Definition

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

[Android.Runtime.Register("searchKeys", "(JLjava/util/function/Function;)Ljava/lang/Object;", "GetSearchKeys_JLjava_util_function_Function_Handler", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "U" })]
public virtual Java.Lang.Object? SearchKeys (long parallelismThreshold, Java.Util.Functions.IFunction searchFunction);
[<Android.Runtime.Register("searchKeys", "(JLjava/util/function/Function;)Ljava/lang/Object;", "GetSearchKeys_JLjava_util_function_Function_Handler", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "U" })>]
abstract member SearchKeys : int64 * Java.Util.Functions.IFunction -> Java.Lang.Object
override this.SearchKeys : 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 key, or null if none

Attributes

Remarks

Returns a non-null result from applying the given search function on each key, 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.searchKeys(long, java.util.function.Function<? super K, ? 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