MethodType.ChangeReturnType(Class) Method

Definition

Finds or creates a method type with a different return type.

[Android.Runtime.Register("changeReturnType", "(Ljava/lang/Class;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)]
public Java.Lang.Invoke.MethodType? ChangeReturnType (Java.Lang.Class? nrtype);
[<Android.Runtime.Register("changeReturnType", "(Ljava/lang/Class;)Ljava/lang/invoke/MethodType;", "", ApiSince=26)>]
member this.ChangeReturnType : Java.Lang.Class -> Java.Lang.Invoke.MethodType

Parameters

nrtype
Class

a return parameter type to replace the old one with

Returns

the same type, except with the return type change

Attributes

Remarks

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

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