API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.lang.reflect. Array View Source
Author(s)
Nakul Saraiya
Since
Version
Serial
Hierarchy
 Object
      Array
Implements
Subclasses
Description
publicfinal class Array
  The Array class provides static methods to dynamically create and access Java arrays.
See also:   
Constructors
private Array ()
  Constructor.
Methods
Hide/Show inherited methods
publicstaticnative Object get (Object array, int index) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Returns the value of the indexed component in the specified array object.
publicstaticnative boolean getBoolean (Object array, int index) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Returns the value of the indexed component in the specified array object, as a boolean.
publicstaticnative byte getByte (Object array, int index) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Returns the value of the indexed component in the specified array object, as a byte.
publicstaticnative char getChar (Object array, int index) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Returns the value of the indexed component in the specified array object, as a char.
publicstaticnative double getDouble (Object array, int index) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Returns the value of the indexed component in the specified array object, as a double.
publicstaticnative float getFloat (Object array, int index) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Returns the value of the indexed component in the specified array object, as a float.
publicstaticnative int getInt (Object array, int index) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Returns the value of the indexed component in the specified array object, as an int.
publicstaticnative int getLength (Object array) throws IllegalArgumentException
  Returns the length of the specified array object, as an int.
publicstaticnative long getLong (Object array, int index) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Returns the value of the indexed component in the specified array object, as a long.
publicstaticnative short getShort (Object array, int index) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Returns the value of the indexed component in the specified array object, as a short.
publicstatic Object newInstance (Class<Object> componentType, int[] dimensions) throws IllegalArgumentException NegativeArraySizeException
  Creates a new array with the specified component type and dimensions.
publicstatic Object newInstance (Class<Object> componentType, int length) throws NegativeArraySizeException
  Creates a new array with the specified component type and length.
publicstaticnative void set (Object array, int index, Object value) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Sets the value of the indexed component of the specified array object to the specified new value.
publicstaticnative void setBoolean (Object array, int index, boolean z) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Sets the value of the indexed component of the specified array object to the specified boolean value.
publicstaticnative void setByte (Object array, int index, byte b) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Sets the value of the indexed component of the specified array object to the specified byte value.
publicstaticnative void setChar (Object array, int index, char c) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Sets the value of the indexed component of the specified array object to the specified char value.
publicstaticnative void setDouble (Object array, int index, double d) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Sets the value of the indexed component of the specified array object to the specified double value.
publicstaticnative void setFloat (Object array, int index, float f) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Sets the value of the indexed component of the specified array object to the specified float value.
publicstaticnative void setInt (Object array, int index, int i) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Sets the value of the indexed component of the specified array object to the specified int value.
publicstaticnative void setLong (Object array, int index, long l) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Sets the value of the indexed component of the specified array object to the specified long value.
publicstaticnative void setShort (Object array, int index, short s) throws IllegalArgumentException ArrayIndexOutOfBoundsException
  Sets the value of the indexed component of the specified array object to the specified short value.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar