public final class Array extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
get(Object array,
int index) |
static boolean |
getBoolean(Object array,
int index) |
static byte |
getByte(Object array,
int index) |
static char |
getChar(Object array,
int index) |
static double |
getDouble(Object array,
int index) |
static float |
getFloat(Object array,
int index) |
static int |
getInt(Object array,
int index) |
static int |
getLength(Object array) |
static long |
getLong(Object array,
int index) |
static short |
getShort(Object array,
int index) |
static Object |
newInstance(Class componentType,
int length) |
static Object |
newInstance(Class componentType,
int[] dimensions) |
static void |
set(Object array,
int index,
Object value) |
static void |
setBoolean(Object array,
int index,
boolean z) |
static void |
setByte(Object array,
int index,
byte b) |
static void |
setChar(Object array,
int index,
char c) |
static void |
setDouble(Object array,
int index,
double d) |
static void |
setFloat(Object array,
int index,
float f) |
static void |
setInt(Object array,
int index,
int i) |
static void |
setLong(Object array,
int index,
long l) |
static void |
setShort(Object array,
int index,
short s) |
public static Object newInstance(Class componentType, int length) throws NullPointerException, NegativeArraySizeException
public static Object newInstance(Class componentType, int[] dimensions) throws NullPointerException, IllegalArgumentException, NegativeArraySizeException
public static int getLength(Object array) throws NullPointerException, IllegalArgumentException
public static Object get(Object array, int index) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static boolean getBoolean(Object array, int index) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static byte getByte(Object array, int index) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static char getChar(Object array, int index) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static short getShort(Object array, int index) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static int getInt(Object array, int index) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static long getLong(Object array, int index) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static float getFloat(Object array, int index) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static double getDouble(Object array, int index) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static void set(Object array, int index, Object value) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static void setBoolean(Object array, int index, boolean z) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static void setByte(Object array, int index, byte b) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static void setChar(Object array, int index, char c) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static void setShort(Object array, int index, short s) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static void setInt(Object array, int index, int i) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static void setLong(Object array, int index, long l) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static void setFloat(Object array, int index, float f) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException
public static void setDouble(Object array, int index, double d) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException