ConcurrentHashMap.ForEachEntry Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.
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.