java.lang.reflect

Class Array

public final class Array extends Object

Method Summary
static Objectget(Object array, int index)
static booleangetBoolean(Object array, int index)
static bytegetByte(Object array, int index)
static chargetChar(Object array, int index)
static doublegetDouble(Object array, int index)
static floatgetFloat(Object array, int index)
static intgetInt(Object array, int index)
static intgetLength(Object array)
static longgetLong(Object array, int index)
static shortgetShort(Object array, int index)
static ObjectnewInstance(Class componentType, int length)
static ObjectnewInstance(Class componentType, int[] dimensions)
static voidset(Object array, int index, Object value)
static voidsetBoolean(Object array, int index, boolean z)
static voidsetByte(Object array, int index, byte b)
static voidsetChar(Object array, int index, char c)
static voidsetDouble(Object array, int index, double d)
static voidsetFloat(Object array, int index, float f)
static voidsetInt(Object array, int index, int i)
static voidsetLong(Object array, int index, long l)
static voidsetShort(Object array, int index, short s)

Method Detail

get

public static Object get(Object array, int index)

getBoolean

public static boolean getBoolean(Object array, int index)

getByte

public static byte getByte(Object array, int index)

getChar

public static char getChar(Object array, int index)

getDouble

public static double getDouble(Object array, int index)

getFloat

public static float getFloat(Object array, int index)

getInt

public static int getInt(Object array, int index)

getLength

public static int getLength(Object array)

getLong

public static long getLong(Object array, int index)

getShort

public static short getShort(Object array, int index)

newInstance

public static Object newInstance(Class componentType, int length)

newInstance

public static Object newInstance(Class componentType, int[] dimensions)

set

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

setBoolean

public static void setBoolean(Object array, int index, boolean z)

setByte

public static void setByte(Object array, int index, byte b)

setChar

public static void setChar(Object array, int index, char c)

setDouble

public static void setDouble(Object array, int index, double d)

setFloat

public static void setFloat(Object array, int index, float f)

setInt

public static void setInt(Object array, int index, int i)

setLong

public static void setLong(Object array, int index, long l)

setShort

public static void setShort(Object array, int index, short s)