Example usage for Java java.lang.reflect Array fields, constructors, methods, implement or subclass
The text is from its open source code.
Object | get(Object array, int index) Returns the value of the indexed component in the specified array object. |
boolean | getBoolean(Object array, int index) Returns the value of the indexed component in the specified array object, as a boolean . |
byte | getByte(Object array, int index) Returns the value of the indexed component in the specified array object, as a byte . |
char | getChar(Object array, int index) Returns the value of the indexed component in the specified array object, as a char . |
double | getDouble(Object array, int index) Returns the value of the indexed component in the specified array object, as a double . |
float | getFloat(Object array, int index) Returns the value of the indexed component in the specified array object, as a float . |
int | getInt(Object array, int index) Returns the value of the indexed component in the specified array object, as an int . |
int | getLength(Object array) Returns the length of the specified array object, as an int . |
long | getLong(Object array, int index) Returns the value of the indexed component in the specified array object, as a long . |
short | getShort(Object array, int index) Returns the value of the indexed component in the specified array object, as a short . |
Object | newInstance(Class> componentType, int length) Creates a new array with the specified component type and length. |
Object | newInstance(Class> componentType, int... dimensions) Creates a new array with the specified component type and dimensions. |
void | set(Object array, int index, Object value) Sets the value of the indexed component of the specified array object to the specified new value. |
void | setBoolean(Object array, int index, boolean z) Sets the value of the indexed component of the specified array object to the specified boolean value. |
void | setByte(Object array, int index, byte b) Sets the value of the indexed component of the specified array object to the specified byte value. |
void | setChar(Object array, int index, char c) Sets the value of the indexed component of the specified array object to the specified char value. |
void | setDouble(Object array, int index, double d) Sets the value of the indexed component of the specified array object to the specified double value. |
void | setFloat(Object array, int index, float f) Sets the value of the indexed component of the specified array object to the specified float value. |
void | setInt(Object array, int index, int i) Sets the value of the indexed component of the specified array object to the specified int value. |
void | setLong(Object array, int index, long l) Sets the value of the indexed component of the specified array object to the specified long value. |
void | setShort(Object array, int index, short s) Sets the value of the indexed component of the specified array object to the specified short value. |