Java java.lang.reflect Array fields, constructors, methods, implement or subclass

Example usage for Java java.lang.reflect Array fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang.reflect Array.

The text is from its open source code.

Method

Objectget(Object array, int index)
Returns the value of the indexed component in the specified array object.
booleangetBoolean(Object array, int index)
Returns the value of the indexed component in the specified array object, as a boolean .
bytegetByte(Object array, int index)
Returns the value of the indexed component in the specified array object, as a byte .
chargetChar(Object array, int index)
Returns the value of the indexed component in the specified array object, as a char .
doublegetDouble(Object array, int index)
Returns the value of the indexed component in the specified array object, as a double .
floatgetFloat(Object array, int index)
Returns the value of the indexed component in the specified array object, as a float .
intgetInt(Object array, int index)
Returns the value of the indexed component in the specified array object, as an int .
intgetLength(Object array)
Returns the length of the specified array object, as an int .
longgetLong(Object array, int index)
Returns the value of the indexed component in the specified array object, as a long .
shortgetShort(Object array, int index)
Returns the value of the indexed component in the specified array object, as a short .
ObjectnewInstance(Class componentType, int length)
Creates a new array with the specified component type and length.
ObjectnewInstance(Class componentType, int... dimensions)
Creates a new array with the specified component type and dimensions.
voidset(Object array, int index, Object value)
Sets the value of the indexed component of the specified array object to the specified new value.
voidsetBoolean(Object array, int index, boolean z)
Sets the value of the indexed component of the specified array object to the specified boolean value.
voidsetByte(Object array, int index, byte b)
Sets the value of the indexed component of the specified array object to the specified byte value.
voidsetChar(Object array, int index, char c)
Sets the value of the indexed component of the specified array object to the specified char value.
voidsetDouble(Object array, int index, double d)
Sets the value of the indexed component of the specified array object to the specified double value.
voidsetFloat(Object array, int index, float f)
Sets the value of the indexed component of the specified array object to the specified float value.
voidsetInt(Object array, int index, int i)
Sets the value of the indexed component of the specified array object to the specified int value.
voidsetLong(Object array, int index, long l)
Sets the value of the indexed component of the specified array object to the specified long value.
voidsetShort(Object array, int index, short s)
Sets the value of the indexed component of the specified array object to the specified short value.