|
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.ListIterator<E>
E
- underlying parameterization of nodepublic class ListIterator<E>
Provide minimal iterator to walk through the next pointers in the linked list.
Constructor Summary | |
---|---|
ListIterator(List<E> l)
Constructor for iterator takes the list as parameter. |
Method Summary | |
---|---|
boolean |
hasNext()
Determine if there are more Nodes in the list to be reported. |
E |
next()
Return the value of the next node in the list and advances the Iterator. |
void |
remove()
Remove operation not supported for List objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListIterator(List<E> l)
l
- list to be walked through.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()
remove
in interface java.util.Iterator<E>
|
Algorithm Development Kit 1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |