다음을 통해 공유


ConcurrentHashMap.ForEachEntry Method

Definition

Overloads

ForEachEntry(Int64, IConsumer)

Performs the given action for each entry.

ForEachEntry(Int64, IFunction, IConsumer)

Performs the given action for each non-null transformation of each entry.

ForEachEntry(Int64, IConsumer)

Performs the given action for each entry.

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

Parameters

parallelismThreshold
Int64

the (estimated) number of elements needed for this operation to be executed in parallel

action
IConsumer

the action

Attributes

Remarks

Performs the given action for each entry.

Added in 1.8.

Java documentation for java.util.concurrent.ConcurrentHashMap.forEachEntry(long, java.util.function.Consumer<? super java.util.Map.Entry<K, V>>).

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

ForEachEntry(Int64, IFunction, IConsumer)

Performs the given action for each non-null transformation of each entry.

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

Parameters

parallelismThreshold
Int64

the (estimated) number of elements needed for this operation to be executed in parallel

transformer
IFunction

a function returning the transformation for an element, or null if there is no transformation (in which case the action is not applied)

action
IConsumer

the action

Attributes

Remarks

Performs the given action for each non-null transformation of each entry.

Added in 1.8.

Java documentation for java.util.concurrent.ConcurrentHashMap.forEachEntry(long, java.util.function.Function<java.util.Map.Entry<K, V>, ? extends U>, java.util.function.Consumer<? super 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