Freigeben über


IList.ReplaceAll(IUnaryOperator) Method

Definition

Replaces each element of this list with the result of applying the operator to that element.

[Android.Runtime.Register("replaceAll", "(Ljava/util/function/UnaryOperator;)V", "GetReplaceAll_Ljava_util_function_UnaryOperator_Handler:Java.Util.IList, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]
public virtual void ReplaceAll (Java.Util.Functions.IUnaryOperator operator);
[<Android.Runtime.Register("replaceAll", "(Ljava/util/function/UnaryOperator;)V", "GetReplaceAll_Ljava_util_function_UnaryOperator_Handler:Java.Util.IList, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]
abstract member ReplaceAll : Java.Util.Functions.IUnaryOperator -> unit
override this.ReplaceAll : Java.Util.Functions.IUnaryOperator -> unit

Parameters

operator
IUnaryOperator

the operator to apply to each element

Attributes

Remarks

Replaces each element of this list with the result of applying the operator to that element. Errors or runtime exceptions thrown by the operator are relayed to the caller.

Added in 1.8.

Java documentation for java.util.List.replaceAll(java.util.function.UnaryOperator<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