|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataRow
Container interface for a vector of DataCells and a row key for
unique identification.
Each DataRow represents one row of a DataTable and
contains a fixed number of DataCell elements which are directly
accessible and read-only. In addition, each DataRow contains a
unique identifier key (which is not part of the data vector).
A DataRow must not contain a null element or a
null key.
This DataRow interface extends the Iterable interface
but does not allow the removal of DataCells. Implementors must
therefore throw an UnsupportedOperationException in the Iterators
remove method.
DataTable,
DataCell,
RowIterator,
RowKey| Method Summary | |
|---|---|
DataCell |
getCell(int index)
Returns the DataCell at the provided index within this row. |
RowKey |
getKey()
Returns the row key. |
int |
getNumCells()
Returns the length of this row, that is the number of columns of the DataTable (not including the row key). |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
int getNumCells()
RowKey getKey()
DataCell getCell(int index)
DataCell at the provided index within this row.
index - the index of the cell to retrieve (indices start from 0)
DataCell at the given index
IndexOutOfBoundsException - if the index is out of range
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||