|
Algorithm Development Kit 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectalgs.model.list.DoubleLinkedListIterator<E>
E - Underlying type of the element values stored by each nodepublic class DoubleLinkedListIterator<E>
Provide minimal iterator to walk through the next pointers in the DoubleLinkedList.
| Constructor Summary | |
|---|---|
DoubleLinkedListIterator(DoubleLinkedList<E> elist)
Constructor for the iterator over the list. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Determine if more elements exist in iteration. |
E |
next()
Return next element in the iteration. |
void |
remove()
Remove the most recent element retrieved by the next() iterator method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleLinkedListIterator(DoubleLinkedList<E> elist)
elist - List to be processed by the iterator.| Method Detail |
|---|
public E next()
next in interface java.util.Iterator<E>public boolean hasNext()
hasNext in interface java.util.Iterator<E>public void remove()
next() iterator method.
remove in interface java.util.Iterator<E>java.lang.IllegalStateException - if the next method has not
yet been called, or the remove method has already
been called after the last call to the next
method.
|
Algorithm Development Kit 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||