ConcurrentHashMap.Search(Int64, IBiFunction) Method

Definition

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

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

searchFunction
IBiFunction

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, value), or null if none

Attributes

Remarks

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