Bagikan melalui


IMap.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", "GetReplaceAll_Ljava_util_function_BiFunction_Handler:Java.Util.IMap, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]
public virtual void ReplaceAll (Java.Util.Functions.IBiFunction function);
[<Android.Runtime.Register("replaceAll", "(Ljava/util/function/BiFunction;)V", "GetReplaceAll_Ljava_util_function_BiFunction_Handler:Java.Util.IMap, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]
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

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.

Added in 1.8.

Java documentation for java.util.Map.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