MethodHandles.ArrayElementSetter(Class) Method

Definition

Produces a method handle giving write access to elements of an array.

[Android.Runtime.Register("arrayElementSetter", "(Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodHandle? ArrayElementSetter (Java.Lang.Class? arrayClass);
[<Android.Runtime.Register("arrayElementSetter", "(Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)>]
static member ArrayElementSetter : Java.Lang.Class -> Java.Lang.Invoke.MethodHandle

Parameters

arrayClass
Class

the class of an array

Returns

a method handle which can store values into the array type

Attributes

Remarks

Produces a method handle giving write access to elements of an array. The type of the method handle will have a void return type. Its last argument will be the array's element type. The first and second arguments will be the array type and int.

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