Share via


MethodHandles.InsertArguments(MethodHandle, Int32, Object[]) Method

Definition

Provides a target method handle with one or more <em>bound arguments</em> in advance of the method handle's invocation.

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

Parameters

target
MethodHandle

the method handle to invoke after the argument is inserted

pos
Int32

where to insert the argument (zero for the first)

values
Object[]

the series of arguments to insert

Returns

a method handle which inserts an additional argument, before calling the original method handle

Attributes

Remarks

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

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