Aracılığıyla paylaş


IFunction.Compose(IFunction) Method

Definition

Returns a composed function that first applies the before function to its input, and then applies this function to the result.

[Android.Runtime.Register("compose", "(Ljava/util/function/Function;)Ljava/util/function/Function;", "GetCompose_Ljava_util_function_Function_Handler:Java.Util.Functions.IFunction, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "V" })]
public virtual Java.Util.Functions.IFunction? Compose (Java.Util.Functions.IFunction? before);
[<Android.Runtime.Register("compose", "(Ljava/util/function/Function;)Ljava/util/function/Function;", "GetCompose_Ljava_util_function_Function_Handler:Java.Util.Functions.IFunction, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "V" })>]
abstract member Compose : Java.Util.Functions.IFunction -> Java.Util.Functions.IFunction
override this.Compose : Java.Util.Functions.IFunction -> Java.Util.Functions.IFunction

Parameters

before
IFunction

the function to apply before this function is applied

Returns

a composed function that first applies the before function and then applies this function

Attributes

Remarks

Returns a composed function that first applies the before function to its input, and then applies this function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the composed function.

Java documentation for java.util.function.Function.compose(java.util.function.Function<? super V, ? extends T>).

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