|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Matrix that can hold objects, not just primitive values.
Method Summary | |
int |
columns()
The number of columns this matrix has. |
java.lang.Object |
get(int col,
int row)
Returns an Object from a given position. |
boolean |
isGrowable()
Indicates whether this matrix can grow or has a fixed size. |
java.lang.Object |
remove(int col,
int row)
Removes an Object from a given position. |
int |
rows()
The number of rows this matrix has. |
java.lang.Object |
set(int col,
int row,
java.lang.Object object)
Sets an Object at a given position. |
Method Detail |
public java.lang.Object set(int col, int row, java.lang.Object object)
col
- columnrow
- rowobject
- Object to set
null
if there was none
java.lang.IndexOutOfBoundsException
- if col or row are less than zero or greater
than the size of this matrixpublic java.lang.Object get(int col, int row)
col
- columnrow
- row
null
if there is none
java.lang.IndexOutOfBoundsException
- if col or row are less than zero or greater
than the size of this matrixpublic java.lang.Object remove(int col, int row)
col
- columnrow
- row
null
if there was none
java.lang.IndexOutOfBoundsException
- if col or row are less than zero or greater
than the size of this matrixpublic int columns()
public int rows()
public boolean isGrowable()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |