ArrayMap.ReplaceAll(IBiFunction) 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.
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)
.
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.