Share via


MethodType.ChangeParameterType(Int32, Class) Method

Definition

Finds or creates a method type with a single different parameter type.

[Android.Runtime.Register("changeParameterType", "(ILjava/lang/Class;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)]
public Java.Lang.Invoke.MethodType? ChangeParameterType (int num, Java.Lang.Class? nptype);
[<Android.Runtime.Register("changeParameterType", "(ILjava/lang/Class;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)>]
member this.ChangeParameterType : int * Java.Lang.Class -> Java.Lang.Invoke.MethodType

Parameters

num
Int32

the index (zero-based) of the parameter type to change

nptype
Class

a new parameter type to replace the old one with

Returns

the same type, except with the selected parameter changed

Attributes

Remarks

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

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