|
Oracle Application Development Framework Model and Business Components Java API Reference
10g Release 3 (10.1.3) B16005-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An Iterator for Lists that allows the programmer to traverse the List in either direction and modify the list during iteration.
Collection, List, Iterator, Enumeration| Method Summary | |
void |
add(java.lang.Object o)Inserts the specified element into the List. |
boolean |
hasNext()Returns true if this ListIterator has more elements when traversing the list in the forward direction. |
boolean |
hasPrevious()Returns true if this ListIterator has more elements when traversing the list in the reverse direction. |
int |
index()Returns the index of the next element that would be returned by next. |
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. |
void |
remove()Removes from the List the last element that was returned by next or previous. |
void |
set(java.lang.Object o)Replaces the last element returned by next or previous with the specified element. |
| Method Detail |
public boolean hasNext()
hasNext in interface Iteratorpublic java.lang.Object next()
next in interface IteratorNoSuchElementException - iteration has no next element.public boolean hasPrevious()
public java.lang.Object previous()
NoSuchElementException - iteration has no previous element.public int index()
public int nextIndex()
public int previousIndex()
public void remove()
remove in interface IteratorUnsupportedOperationException - remove is not supported by this ListIterator.NoSuchElementException - neither next nor previous have been called, or remove has already been called after the last call to next or previous.public void set(java.lang.Object o)
UnsupportedOperationException - set is not supported by this ListIterator.NoSuchElementException - neither next nor previous have been called, or remove was called after the last call to next or previous.public void add(java.lang.Object o)
UnsupportedOperationException - add is not supported by this ListIterator.
|
Oracle Application Development Framework Model and Business Components Java API Reference
10g Release 3 (10.1.3) B16005-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||