public final class ArrayReflection extends Object
Constructor and Description |
---|
ArrayReflection() |
Modifier and Type | Method and Description |
---|---|
static Object |
get(Object array,
int index)
Returns the value of the indexed component in the supplied array.
|
static int |
getLength(Object array)
Returns the length of the supplied array.
|
static Object |
newInstance(Class c,
int size)
Creates a new array with the specified component type and length.
|
static void |
set(Object array,
int index,
Object value)
Sets the value of the indexed component in the supplied array to the supplied value.
|
public static Object newInstance(Class c, int size)
public static int getLength(Object array)
public static Object get(Object array, int index)
Copyright © 2015. All rights reserved.