MethodType.Generic Method

Definition

Converts all types, both reference and primitive, to Object.

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

Returns

a version of the original type with all types replaced

Attributes

Remarks

Converts all types, both reference and primitive, to Object. Convenience method for #genericMethodType(int) genericMethodType. The expression type.wrap().erase() produces the same value as type.generic().

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

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