MethodHandles.CollectArguments(MethodHandle, Int32, MethodHandle) Method

Definition

Adapts a target method handle by pre-processing a sub-sequence of its arguments with a filter (another method handle).

[Android.Runtime.Register("collectArguments", "(Ljava/lang/invoke/MethodHandle;ILjava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodHandle? CollectArguments (Java.Lang.Invoke.MethodHandle? target, int pos, Java.Lang.Invoke.MethodHandle? filter);
[<Android.Runtime.Register("collectArguments", "(Ljava/lang/invoke/MethodHandle;ILjava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)>]
static member CollectArguments : Java.Lang.Invoke.MethodHandle * int * Java.Lang.Invoke.MethodHandle -> Java.Lang.Invoke.MethodHandle

Parameters

target
MethodHandle

the method handle to invoke after filtering the subsequence of arguments

pos
Int32

the position of the first adapter argument to pass to the filter, and/or the target argument which receives the result of the filter

filter
MethodHandle

method handle to call on the subsequence of arguments

Returns

MethodHandle

method handle which incorporates the specified argument subsequence filtering logic

Attributes

Remarks

Java documentation for java.lang.invoke.MethodHandles.collectArguments(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