|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ListIterator
An iterator which allows applications to traverse metadata fragments in a DatabaseQueryResult
.
Implementations which support java.util.ListIterator may use this as the parent interface.
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if this list iterator has more elements when traversing the
list in the forward direction. |
boolean |
hasPrevious()
Returns true if this list iterator has more elements when traversing the
list in the reverse direction. |
java.lang.Object |
next()
Returns the next element in the list. |
int |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next . |
java.lang.Object |
previous()
Returns the previous element in the list. |
int |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous . |
Method Detail |
---|
boolean hasNext()
true
if this list iterator has more elements when traversing the
list in the forward direction. (In other words, returns true
if next
would
return an element rather than throwing an exception.)
true
if the list iterator has more elements when traversing the list in the forward direction.boolean hasPrevious()
true
if this list iterator has more elements when traversing the
list in the reverse direction. (In other words, returns true
if previous
would
return an element rather than throwing an exception.)
true
if the list iterator has more elements when traversing the list in the reverse direction.java.lang.Object next()
previous
to go back and forth. (Note that alternating calls to next
and previous
will return the same element repeatedly.)
java.util.NoSuchElementException
- if the iteration has no next element.int nextIndex()
next
.
(Returns list size if the list iterator is at the end of the list.)
next
, or
list size if list iterator is at end of list.java.lang.Object previous()
next
to go back and forth. (Note that alternating calls to
next
and previous
will return the same element repeatedly.)
java.util.NoSuchElementException
- if the iteration has no previous element.int previousIndex()
previous
.
(Returns -1 if the list iterator is at the beginning of the list.)
previous
, or -1 if list iterator is at beginning of list.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |