|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.data.def.DefaultCellIterator
public class DefaultCellIterator
Default implementation of an iterator over the DataCells of a
DataRow. It uses the getNumCells() and
getCell(int) methods of the underlying row to return the
cells. Hence, it starts at the cell of the column with index 0 and then
sequentially returns the cells up to the last cell (of the column with the
highest index) in the row.
The iterator doesn't support removal of datacells, an invocation of the
method remove() will end up with an exception.
| Constructor Summary | |
|---|---|
DefaultCellIterator(DataRow row)
Creates a new iterator over a given DataRow. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
DataCell |
next()
|
void |
remove()
Throws UnsupportedOperationException as removal of datacells from
a row is not permitted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCellIterator(DataRow row)
DataRow.
row - The row to traverse.
NullPointerException - If the argument is null.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<DataCell>public DataCell next()
next in interface Iterator<DataCell>public void remove()
UnsupportedOperationException as removal of datacells from
a row is not permitted.
remove in interface Iterator<DataCell>Iterator.remove()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||