다음을 통해 공유


ConcurrentHashMap.ForEachValue Method

Definition

Overloads

ForEachValue(Int64, IConsumer)

Performs the given action for each value.

ForEachValue(Int64, IFunction, IConsumer)

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

ForEachValue(Int64, IConsumer)

Performs the given action for each value.

[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

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 value.

Added in 1.8.

Java documentation for java.util.concurrent.ConcurrentHashMap.forEachValue(long, java.util.function.Consumer<? super 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

ForEachValue(Int64, IFunction, IConsumer)

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

[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

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 value.

Added in 1.8.

Java documentation for java.util.concurrent.ConcurrentHashMap.forEachValue(long, java.util.function.Function<? super 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