|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.data.RowIterator
org.knime.core.data.def.DefaultRowIterator
public class DefaultRowIterator
Specific implementation for a RowIterator
that iterates over a
generic DataTable
. It delegates to a
given Iterator<DataRow>
; but disallows the invocation of
the remove
method.
Constructor Summary | |
---|---|
DefaultRowIterator(DataRow... rows)
Constructs a new iterator that traverses an array of DataRow . |
|
DefaultRowIterator(Iterable<DataRow> iterable)
Constructs a new iterator based on an Iterable . |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if there are more rows and false
otherwise. |
DataRow |
next()
Returns the next DataRow . |
Methods inherited from class org.knime.core.data.RowIterator |
---|
remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultRowIterator(Iterable<DataRow> iterable)
Iterable
.
iterable
- the underlying iterable row container.
NullPointerException
- if the argument is null.public DefaultRowIterator(DataRow... rows)
DataRow
.
rows
- the array to iterate over.
NullPointerException
- if the argument is null.Method Detail |
---|
public boolean hasNext()
true
if there are more rows and false
otherwise.
hasNext
in interface Iterator<DataRow>
hasNext
in class RowIterator
true
if the iterator has more elements, otherwise
false
RowIterator.next()
public DataRow next()
DataRow
.
next
in interface Iterator<DataRow>
next
in class RowIterator
DataTable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |