All Packages Class Hierarchy This Package Previous Next Index
The Java array package provides the basic functionality of Fortran 90 arrays in Java. Arrays are multidimensional, rectangular grids of elements. The array class hierarchy is as follows:
Array ----> <type>Array ----> <type>Array<rank>
where Array is an interface, <type>Array is an abstract class and <type>Array<rank> is a (concrete) class. Only objects of class <type>Array<rank> can be instantiated. The following <type>s are valid:
boolean, byte, short, int, long, char, float, double, FloatComplex, DoubleComplex, and Object.
The following <rank>s are valid:
0D (for 0-dimensional arrays), 1D (for 1-dimensional arrays), 2D, 3D, 4D, 5D, 6D, 7D.
Note: This distribution only contains the classes for <type>=double and <rank>=0D,1D,2D,3D.
The Array interface is implemented by all abstract array classes of the form <type>Array. It declares the basic methods that are common to all arrays, independent of <type> and <rank>
public abstract int rank()
public abstract int size()
public abstract int size(int i) throws InvalidArrayAxisException
public abstract int[] shape()
public abstract Object getAsObject(int index[]) throws InvalidArrayIndexException, ArrayIndexOutOfBoundsException
public abstract void setToObject(int index[], Object obj) throws InvalidArrayIndexException, ArrayIndexOutOfBoundsException, NullPointerException
All Packages Class Hierarchy This Package Previous Next Index