public class Array extends Object
Constructor and Description |
---|
Array()
Array
|
Modifier and Type | Method and Description |
---|---|
static Object |
get(Object obj,
int i) |
static boolean |
getBoolean(Object obj,
int i) |
static byte |
getByte(Object obj,
int i) |
static char |
getChar(Object obj,
int i) |
static double |
getDouble(Object obj,
int i) |
static float |
getFloat(Object obj,
int i) |
static int |
getInt(Object obj,
int i) |
static int |
getLength(Object obj) |
static long |
getLong(Object obj,
int i) |
static short |
getShort(Object obj,
int i) |
static Object |
newInstance(Class class1,
int i) |
static Object |
newInstance(Class class1,
int[] ai) |
static void |
set(Object obj,
int i,
Object obj1) |
static void |
setBoolean(Object obj,
int i,
boolean flag) |
static void |
setByte(Object obj,
int i,
byte byte0) |
static void |
setChar(Object obj,
int i,
char c) |
static void |
setDouble(Object obj,
int i,
double d) |
static void |
setFloat(Object obj,
int i,
float f) |
static void |
setInt(Object obj,
int i,
int j) |
static void |
setLong(Object obj,
int i,
long l) |
static void |
setShort(Object obj,
int i,
short word0) |
public static Object get(Object obj, int i) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static boolean getBoolean(Object obj, int i) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static byte getByte(Object obj, int i) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static char getChar(Object obj, int i) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static double getDouble(Object obj, int i) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static float getFloat(Object obj, int i) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static int getInt(Object obj, int i) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static int getLength(Object obj)
obj
- ?public static long getLong(Object obj, int i) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static short getShort(Object obj, int i) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static Object newInstance(Class class1, int i) throws NegativeArraySizeException
class1
- ?i
- ?NegativeArraySizeException
- ?public static Object newInstance(Class class1, int[] ai) throws NegativeArraySizeException
class1
- ?ai
- ?NegativeArraySizeException
- ?public static void set(Object obj, int i, Object obj1) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?obj1
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static void setBoolean(Object obj, int i, boolean flag) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?flag
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static void setByte(Object obj, int i, byte byte0) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?byte0
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static void setChar(Object obj, int i, char c) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?c
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static void setDouble(Object obj, int i, double d) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?d
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static void setFloat(Object obj, int i, float f) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?f
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static void setInt(Object obj, int i, int j) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?j
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static void setLong(Object obj, int i, long l) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?l
- ?IllegalArgumentException
- ?ArrayIndexOutOfBoundsException
- ?public static void setShort(Object obj, int i, short word0) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
obj
- ?i
- ?word0
- ?IllegalArgumentException
- on array of incorrect typeArrayIndexOutOfBoundsException
- on out of bounds access