言語

ConcurrentHashMap.ForEachKey メソッド

定義

オーバーロード

名前 説明
ForEachKey(Int64, IConsumer)

各キーに対して指定されたアクションを実行します。

ForEachKey(Int64, IFunction, IConsumer)

各キーの null 以外の変換ごとに、指定されたアクションを実行します。

ForEachKey(Int64, IConsumer)

各キーに対して指定されたアクションを実行します。

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

パラメーター

parallelismThreshold
Int64

この操作を並列で実行するために必要な要素の (推定) 数

action
IConsumer

アクション

属性

注釈

各キーに対して指定されたアクションを実行します。

1.8 で追加されました。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

ForEachKey(Int64, IFunction, IConsumer)

各キーの null 以外の変換ごとに、指定されたアクションを実行します。

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

パラメーター

parallelismThreshold
Int64

この操作を並列で実行するために必要な要素の (推定) 数

transformer
IFunction

要素の変換を返す関数。変換がない場合は null (その場合はアクションが適用されません)

action
IConsumer

アクション

属性

注釈

各キーの null 以外の変換ごとに、指定されたアクションを実行します。

1.8 で追加されました。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象