ArrayMap.ReplaceAll(IBiFunction) Method

Definition

Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception.

[Android.Runtime.Register("replaceAll", "(Ljava/util/function/BiFunction;)V", "", ApiSince=33)]
public void ReplaceAll (Java.Util.Functions.IBiFunction? function);
[<Android.Runtime.Register("replaceAll", "(Ljava/util/function/BiFunction;)V", "", ApiSince=33)>]
abstract member ReplaceAll : Java.Util.Functions.IBiFunction -> unit
override this.ReplaceAll : Java.Util.Functions.IBiFunction -> unit

Parameters

function
IBiFunction

The function to apply to each entry

Implements

Attributes

Remarks

Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception. Exceptions thrown by the function are relayed to the caller. 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.replaceAll(java.util.function.BiFunction<? super K, ? super V, ? extends 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