Udostępnij za pośrednictwem


MethodType.GenericMethodType Method

Definition

Overloads

GenericMethodType(Int32)

Finds or creates a method type whose components are all Object.

GenericMethodType(Int32, Boolean)

Finds or creates a method type whose components are Object with an optional trailing Object[] array.

GenericMethodType(Int32)

Finds or creates a method type whose components are all Object.

[Android.Runtime.Register("genericMethodType", "(I)Ljava/lang/invoke/MethodType;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodType? GenericMethodType (int objectArgCount);
[<Android.Runtime.Register("genericMethodType", "(I)Ljava/lang/invoke/MethodType;", "", ApiSince=26)>]
static member GenericMethodType : int -> Java.Lang.Invoke.MethodType

Parameters

objectArgCount
Int32

number of parameters

Returns

a generally applicable method type, for all calls of the given argument count

Attributes

Remarks

Finds or creates a method type whose components are all Object. Convenience method for #methodType(java.lang.Class, java.lang.Class[]) methodType. All parameters and the return type will be Object.

Java documentation for java.lang.invoke.MethodType.genericMethodType(int).

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

GenericMethodType(Int32, Boolean)

Finds or creates a method type whose components are Object with an optional trailing Object[] array.

[Android.Runtime.Register("genericMethodType", "(IZ)Ljava/lang/invoke/MethodType;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodType? GenericMethodType (int objectArgCount, bool finalArray);
[<Android.Runtime.Register("genericMethodType", "(IZ)Ljava/lang/invoke/MethodType;", "", ApiSince=26)>]
static member GenericMethodType : int * bool -> Java.Lang.Invoke.MethodType

Parameters

objectArgCount
Int32

number of parameters (excluding the final array parameter if any)

finalArray
Boolean

whether there will be a trailing array parameter, of type Object[]

Returns

a generally applicable method type, for all calls of the given fixed argument count and a collected array of further arguments

Attributes

Remarks

Finds or creates a method type whose components are Object with an optional trailing Object[] array. Convenience method for #methodType(java.lang.Class, java.lang.Class[]) methodType. All parameters and the return type will be Object, except the final array parameter if any, which will be Object[].

Java documentation for java.lang.invoke.MethodType.genericMethodType(int, boolean).

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