ConcurrentHashMap.ForEachValue 方法

定义

重载

名称 说明
ForEachValue(Int64, IConsumer)

为每个值执行给定的操作。

ForEachValue(Int64, IFunction, IConsumer)

对每个值的每个非 null 转换执行给定操作。

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>)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

ForEachValue(Int64, IFunction, IConsumer)

对每个值的每个非 null 转换执行给定操作。

[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

返回元素转换的函数;如果没有转换(在这种情况下未应用操作),则返回 null。

action
IConsumer

操作

属性

注解

对每个值的每个非 null 转换执行给定操作。

已在 1.8 中添加。

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于