Udostępnij za pośrednictwem


MethodType.Wrap Method

Definition

Converts all primitive types to their corresponding wrapper types.

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

Returns

a version of the original type with all primitive types replaced

Attributes

Remarks

Converts all primitive types to their corresponding wrapper types. Convenience method for #methodType(java.lang.Class, java.lang.Class[]) methodType. All reference types (including wrapper types) will remain unchanged. A void return type is changed to the type java.lang.Void. The expression type.wrap().erase() produces the same value as type.generic().

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

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