|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SourceArray2D
Represents a 2D array obtained from
a data source such a text file, or
a spreadsheet.
Such a source array can be used
to create 1D or 2D arrays.
The rows()
,
columns(int)
, and
get(Class,int,int)
methods can then be used to
inspect the array.
Method Summary | ||
---|---|---|
void |
close()
Clears the data in the source array. |
|
int |
columns(int row)
Returns the number of columns in row row of the source array. |
|
|
get(Class<T> pcls,
int row,
int column)
Returns the element at row row and column column of the source array, converted to class pcls. |
|
int |
rows()
Returns the number of rows in the source array. |
Method Detail |
---|
int rows()
int columns(int row)
row
- the row to test.
IllegalArgumentException
- if
the row index is out of bounds.<T> T get(Class<T> pcls, int row, int column)
T
- the target class.pcls
- the target class.row
- the row index.column
- the column index.
IllegalArgumentException
- if
the row or column indices are out of bounds.
ClassCastException
- if the
element cannot be converted to the
target class.void close()
close
in interface Closeable
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |