Compartir a través de


ArraySet.ForEach(IConsumer) Method

Definition

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

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

Parameters

action
IConsumer

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 using the #iterator().

Java documentation for android.util.ArraySet.forEach(java.util.function.Consumer<? super E>).

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