MethodHandles.FilterArguments(MethodHandle, Int32, MethodHandle[]) Method

Definition

Adapts a target method handle by pre-processing one or more of its arguments, each with its own unary filter function, and then calling the target with each pre-processed argument replaced by the result of its corresponding filter function.

[Android.Runtime.Register("filterArguments", "(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodHandle? FilterArguments (Java.Lang.Invoke.MethodHandle? target, int pos, params Java.Lang.Invoke.MethodHandle[]? filters);
[<Android.Runtime.Register("filterArguments", "(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)>]
static member FilterArguments : Java.Lang.Invoke.MethodHandle * int * Java.Lang.Invoke.MethodHandle[] -> Java.Lang.Invoke.MethodHandle

Parameters

target
MethodHandle

the method handle to invoke after arguments are filtered

pos
Int32

the position of the first argument to filter

filters
MethodHandle[]

method handles to call initially on filtered arguments

Returns

method handle which incorporates the specified argument filtering logic

Attributes

Remarks

Java documentation for java.lang.invoke.MethodHandles.filterArguments(java.lang.invoke.MethodHandle, int, java.lang.invoke.MethodHandle).

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