ConcurrentHashMap.SearchValues(Int64, IFunction) Method

Definition

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

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

Attributes

Remarks

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