MethodType.Unwrap Method

Definition

Converts all wrapper types to their corresponding primitive types.

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

Returns

a version of the original type with all wrapper types replaced

Attributes

Remarks

Converts all wrapper types to their corresponding primitive types. Convenience method for #methodType(java.lang.Class, java.lang.Class[]) methodType. All primitive types (including void) will remain unchanged. A return type of java.lang.Void is changed to void.

Java documentation for java.lang.invoke.MethodType.unwrap().

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