org.axiondb
public interface RowIterator
Version: $Revision: 1.12 $ $Date: 2005/04/22 02:28:53 $
| Method Summary | |
|---|---|
| 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 RowIteratorrow, 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()
Returns the next Rowin the list, or throws
java.util.NoSuchElementExceptionif no next Row exists.
|
| 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 RowIteratorrow, 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 RowIterator, if any, but
don't update my position.
|
| Row | peekPrevious()
Return the value that would be returned by a call to RowIterator, if any,
but don't update my position.
|
| Row | previous()
Returns the previous Rowin the list, or throws
java.util.NoSuchElementExceptionif no next Row exists.
|
| 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 RowIteratorrow, 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 |
Throws: NoSuchElementException when no Rowhas yet been returned
Throws: NoSuchElementException when no Rowhas yet been returned
first is
called both RowIteratorand RowIteratorwill return the first row in the
list.)
Throws: NoSuchElementException when there is no first Row AxionException when a problem occurs accessing the Row
true if I have a current Row. (In other words,
returns true iff RowIteratorwould return a Rowrather
than throwing an exception.)true if I have more Rows when traversing the list
in the forward direction. (In other words, returns true iff
RowIteratorwould return a Rowrather than throwing an exception.)true if I have more Rows when traversing the list
in the reverse direction. (In other words, returns true iff
RowIteratorwould return a Rowrather than throwing an exception.)true if there are no rows to report with this iterator.last is called
both RowIteratorand RowIteratorwill return the last row in the list.)
Throws: NoSuchElementException when there is no last Row AxionException when a problem occurs accessing the Row
Row exists.
Throws: NoSuchElementException when there is no next Row AxionException when a problem occurs accessing the Row
Throws: NoSuchElementException when there is no next Row AxionException when a problem occurs accessing the Row
Throws: NoSuchElementException when there is no previous Row AxionException when a problem occurs accessing the Row
Row exists.
Throws: NoSuchElementException when there is no next Row AxionException when a problem occurs accessing the Row
RowIterator to its initial state (positioned just
before the first Rowin the list).