語言

ConcurrentHashMap.ForEachValue 方法

定義

多載

名稱 Description
ForEachValue(Int64, IConsumer)

對每個值執行給定動作。

ForEachValue(Int64, IFunction, IConsumer)

對每個非空變換執行給定動作。

ForEachValue(Int64, IConsumer)

對每個值執行給定動作。

[Android.Runtime.Register("forEachValue", "(JLjava/util/function/Consumer;)V", "GetForEachValue_JLjava_util_function_Consumer_Handler", ApiSince=24)]
public virtual void ForEachValue(long parallelismThreshold, Java.Util.Functions.IConsumer action);
[<Android.Runtime.Register("forEachValue", "(JLjava/util/function/Consumer;)V", "GetForEachValue_JLjava_util_function_Consumer_Handler", ApiSince=24)>]
abstract member ForEachValue : int64 * Java.Util.Functions.IConsumer -> unit
override this.ForEachValue : int64 * Java.Util.Functions.IConsumer -> unit

參數

parallelismThreshold
Int64

此操作需(估計)並行執行所需的元素數量

action
IConsumer

戰鬥經過

屬性

備註

對每個值執行給定動作。

新增於1.8版本。

Java 文件 java.util.concurrent.ConcurrentHashMap.forEachValue(long, java.util.function.Consumer<? super V>)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

ForEachValue(Int64, IFunction, IConsumer)

對每個非空變換執行給定動作。

[Android.Runtime.Register("forEachValue", "(JLjava/util/function/Function;Ljava/util/function/Consumer;)V", "GetForEachValue_JLjava_util_function_Function_Ljava_util_function_Consumer_Handler", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "U" })]
public virtual void ForEachValue(long parallelismThreshold, Java.Util.Functions.IFunction transformer, Java.Util.Functions.IConsumer action);
[<Android.Runtime.Register("forEachValue", "(JLjava/util/function/Function;Ljava/util/function/Consumer;)V", "GetForEachValue_JLjava_util_function_Function_Ljava_util_function_Consumer_Handler", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "U" })>]
abstract member ForEachValue : int64 * Java.Util.Functions.IFunction * Java.Util.Functions.IConsumer -> unit
override this.ForEachValue : int64 * Java.Util.Functions.IFunction * Java.Util.Functions.IConsumer -> unit

參數

parallelismThreshold
Int64

此操作需(估計)並行執行所需的元素數量

transformer
IFunction

一個回傳元素轉換的函數,或若沒有轉換(此時不應用該動作),則為空函數

action
IConsumer

戰鬥經過

屬性

備註

對每個非空變換執行給定動作。

新增於1.8版本。

Java 文件 java.util.concurrent.ConcurrentHashMap.forEachValue(long, java.util.function.Function<? super V, ? extends U>, java.util.function.Consumer<? super U>)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於