MethodType.InsertParameterTypes Method

Definition

Overloads

InsertParameterTypes(Int32, Class[])

Finds or creates a method type with additional parameter types.

InsertParameterTypes(Int32, IList<Class>)

Finds or creates a method type with additional parameter types.

InsertParameterTypes(Int32, Class[])

Finds or creates a method type with additional parameter types.

[Android.Runtime.Register("insertParameterTypes", "(I[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)]
public Java.Lang.Invoke.MethodType? InsertParameterTypes (int num, params Java.Lang.Class[]? ptypesToInsert);
[<Android.Runtime.Register("insertParameterTypes", "(I[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)>]
member this.InsertParameterTypes : int * Java.Lang.Class[] -> Java.Lang.Invoke.MethodType

Parameters

num
Int32

the position (zero-based) of the inserted parameter type(s)

ptypesToInsert
Class[]

zero or more new parameter types to insert into the parameter list

Returns

the same type, except with the selected parameter(s) inserted

Attributes

Remarks

Java documentation for java.lang.invoke.MethodType.insertParameterTypes(int, java.lang.Class).

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

InsertParameterTypes(Int32, IList<Class>)

Finds or creates a method type with additional parameter types.

[Android.Runtime.Register("insertParameterTypes", "(ILjava/util/List;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)]
public Java.Lang.Invoke.MethodType? InsertParameterTypes (int num, System.Collections.Generic.IList<Java.Lang.Class>? ptypesToInsert);
[<Android.Runtime.Register("insertParameterTypes", "(ILjava/util/List;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)>]
member this.InsertParameterTypes : int * System.Collections.Generic.IList<Java.Lang.Class> -> Java.Lang.Invoke.MethodType

Parameters

num
Int32

the position (zero-based) of the inserted parameter type(s)

ptypesToInsert
IList<Class>

zero or more new parameter types to insert into the parameter list

Returns

the same type, except with the selected parameter(s) inserted

Attributes

Remarks

Finds or creates a method type with additional parameter types. Convenience method for #methodType(java.lang.Class, java.lang.Class[]) methodType.

Java documentation for java.lang.invoke.MethodType.insertParameterTypes(int, java.util.List<java.lang.Class<?>>).

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