MethodHandles.SpreadInvoker(MethodType, Int32) Method

Definition

Produces a method handle which will invoke any method handle of the given type, with a given number of trailing arguments replaced by a single trailing Object[] array.

[Android.Runtime.Register("spreadInvoker", "(Ljava/lang/invoke/MethodType;I)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodHandle? SpreadInvoker (Java.Lang.Invoke.MethodType? type, int leadingArgCount);
[<Android.Runtime.Register("spreadInvoker", "(Ljava/lang/invoke/MethodType;I)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)>]
static member SpreadInvoker : Java.Lang.Invoke.MethodType * int -> Java.Lang.Invoke.MethodHandle

Parameters

type
MethodType

the desired target type

leadingArgCount
Int32

number of fixed arguments, to be passed unchanged to the target

Returns

MethodHandle

a method handle suitable for invoking any method handle of the given type

Attributes

Remarks

Java documentation for java.lang.invoke.MethodHandles.spreadInvoker(java.lang.invoke.MethodType, int).

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