APIdia Launch Partner
Top Description Constructors Methods
com.badlogic.gdx.utils.reflect

public final Class ArrayReflection

extends Object
Class Inheritance

Utilities for Array reflection.
Author
nexsoftware

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Object
get(Object array, int index)

Returns the value of the indexed component in the supplied array.

public static int
getLength(Object array)

Returns the length of the supplied array.

public static Object
newInstance(Class<T> c, int size)

Creates a new array with the specified component type and length.

public static void
set(Object array, int index, Object value)

Sets the value of the indexed component in the supplied array to the supplied value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ArrayReflectionback to summary
public ArrayReflection()

Method Detail

getback to summary
public static Object get(Object array, int index)

Returns the value of the indexed component in the supplied array.

getLengthback to summary
public static int getLength(Object array)

Returns the length of the supplied array.

newInstanceback to summary
public static Object newInstance(Class<T> c, int size)

Creates a new array with the specified component type and length.

setback to summary
public static void set(Object array, int index, Object value)

Sets the value of the indexed component in the supplied array to the supplied value.