|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.util.Matrix
This class represents a wrappable matrix of object
The implementation is simple and not optimized.
Constructor Summary | |
Matrix()
|
|
Matrix(int cCount,
int rCount)
|
Method Summary | |
void |
allocate(int cCount,
int rCount)
Sets the number of columns and the number of rows. |
Object |
get(int i,
int j)
Gets an element in the matrix. |
int |
getColumnCount()
Gets column count. |
int |
getRowCount()
Gets the row count. |
void |
set(int i,
int j,
Object value)
Inserts an element in the matrix. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Matrix()
public Matrix(int cCount, int rCount)
Method Detail |
public void allocate(int cCount, int rCount)
Old data is discarded and all cells are set to null
cCount
- number of columnsrCount
- number of rowspublic void set(int i, int j, Object value) throws IndexOutOfBoundsException
i
- the row of insertionj
- the columm of insertionvalue
- the object to insert in the matrix
IndexOutOfBoundsException
public Object get(int i, int j) throws IndexOutOfBoundsException
i
- the rowj
- the columm
IndexOutOfBoundsException
public int getRowCount()
public int getColumnCount()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |