public interface RowIterator
Rows.| Modifier and Type | Method and Description |
|---|---|
void |
add(Row row)
Add a
Rowat the current position in my underlying collection, or throw
UnsupportedOperationException. |
Row |
current()
|
int |
currentIndex()
Returns the index of the
current()row, if any. |
Row |
first()
|
boolean |
hasCurrent()
Returns
true if I have a current Row. |
boolean |
hasNext()
Returns
true if I have more Rows when traversing the list
in the forward direction. |
boolean |
hasPrevious()
Returns
true if I have more Rows when traversing the list
in the reverse direction. |
boolean |
isEmpty()
Returns
true if there are no rows to report with this iterator. |
Row |
last()
|
Row |
next()
|
int |
next(int count)
Sets the current iterator position to currentIndex() + count; this will not set the
current row, peekPrevious() may be used to return the current row.
|
int |
nextIndex()
Returns the index of the
next()row, if any, or the number of elements is
the iterator if we've reached the end. |
Row |
peekNext()
Return the value that would be returned by a call to
next(), if any, but
don't update my position. |
Row |
peekPrevious()
Return the value that would be returned by a call to
previous(), if any,
but don't update my position. |
Row |
previous()
|
int |
previous(int count)
Sets the current iterator position to currentIndex() - count; this will not set the
current row, peekNext() may be used to return the current row.
|
int |
previousIndex()
Returns the index of the
previous()row, if any, or -1 if we're add the
beginning of the list. |
void |
remove()
Set the
Rowat the current position in my underlying collection, or throw
UnsupportedOperationException. |
void |
reset()
Re-initialize this
RowIterator to its initial state (positioned just
before the first Rowin the list). |
void |
set(Row row)
Set the
Rowat the current position in my underlying collection, or throw
UnsupportedOperationException. |
int |
size()
Retunrs the current size of the underlaying row collection
|
void add(Row row) throws java.lang.UnsupportedOperationException, AxionException
Rowat the current position in my underlying collection, or throw
UnsupportedOperationException. (Optional operation.)java.lang.UnsupportedOperationExceptionAxionExceptionRow current() throws java.util.NoSuchElementException
java.util.NoSuchElementException - when no Rowhas yet been returnedint currentIndex()
throws java.util.NoSuchElementException
current()row, if any.java.util.NoSuchElementException - when no Rowhas yet been returnedRow first() throws java.util.NoSuchElementException, AxionException
Rowin the list, positioning the cursor to just before
the first Rowin the list. (In other words, after first is
called both next()and current()will return the first row in the
list.)java.util.NoSuchElementException - when there is no first RowAxionException - when a problem occurs accessing the Rowboolean hasCurrent()
boolean hasNext()
boolean hasPrevious()
true if I have more Rows when traversing the list
in the reverse direction. (In other words, returns true iff
previous()would return a Rowrather than throwing an exception.)boolean isEmpty()
true if there are no rows to report with this iterator.Row last() throws java.util.NoSuchElementException, AxionException
Rowin the list, positioning the cursor to just after the
last Rowin the list. (In other words, after last is called
both previous()and current()will return the last row in the list.)java.util.NoSuchElementException - when there is no last RowAxionException - when a problem occurs accessing the RowRow next() throws java.util.NoSuchElementException, AxionException
java.util.NoSuchElementException - when there is no next RowAxionException - when a problem occurs accessing the Rowint next(int count) throws AxionException
AxionExceptionint nextIndex()
next()row, if any, or the number of elements is
the iterator if we've reached the end.Row peekNext() throws java.util.NoSuchElementException, AxionException
next(), if any, but
don't update my position.java.util.NoSuchElementException - when there is no next RowAxionException - when a problem occurs accessing the RowRow peekPrevious() throws java.util.NoSuchElementException, AxionException
previous(), if any,
but don't update my position.java.util.NoSuchElementException - when there is no previous RowAxionException - when a problem occurs accessing the RowRow previous() throws java.util.NoSuchElementException, AxionException
java.util.NoSuchElementException - when there is no next RowAxionException - when a problem occurs accessing the Rowint previous(int count)
throws AxionException
AxionExceptionint previousIndex()
previous()row, if any, or -1 if we're add the
beginning of the list.void remove()
throws java.lang.UnsupportedOperationException,
AxionException
Rowat the current position in my underlying collection, or throw
UnsupportedOperationException. (Optional operation.)java.lang.UnsupportedOperationExceptionAxionExceptionvoid reset()
throws AxionException
RowIterator to its initial state (positioned just
before the first Rowin the list).AxionExceptionvoid set(Row row) throws java.lang.UnsupportedOperationException, AxionException
Rowat the current position in my underlying collection, or throw
UnsupportedOperationException. (Optional operation.)java.lang.UnsupportedOperationExceptionAxionExceptionint size() throws AxionException
AxionException