다음을 통해 공유


ArrayMap.ForEach(IBiConsumer) Method

Definition

Performs the given action for all elements in the stored order.

[Android.Runtime.Register("forEach", "(Ljava/util/function/BiConsumer;)V", "", ApiSince=33)]
public void ForEach (Java.Util.Functions.IBiConsumer? action);
[<Android.Runtime.Register("forEach", "(Ljava/util/function/BiConsumer;)V", "", ApiSince=33)>]
abstract member ForEach : Java.Util.Functions.IBiConsumer -> unit
override this.ForEach : Java.Util.Functions.IBiConsumer -> unit

Parameters

action
IBiConsumer

The action to be performed for each element

Implements

Attributes

Remarks

Performs the given action for all elements in the stored order. This implementation overrides the default implementation to avoid iterating using the #entrySet() and iterates in the key-value order consistent with #keyAt(int) and #valueAt(int).

Java documentation for android.util.ArrayMap.forEach(java.util.function.BiConsumer<? super K, ? 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