|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Iterator
Iterator for a list of nodes
To be used with my Node and
Nodelist classes.
Author: Neil Short
Constructor Summary | |
Iterator(Node x,
Node y)
(Don't try this at home)--Constructor called only by Nodelist class. |
Method Summary | |
java.lang.Object |
back()
Move Iterator back one position and return data at the new location. |
Node |
getNode()
Get the current Node. |
void |
gotoBack()
Locate Iterator at the end of the list. |
void |
gotoFirst()
Locate Iterator at the front of the list. |
boolean |
hasNext()
Checks to see if Iterator is at the end of the list. |
boolean |
hasPrev()
Check if Iterator is at the beginning of the list. |
java.lang.Object |
next()
Advance Iterater one position and return the data at that location. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Iterator(Node x, Node y)
Method Detail |
public Node getNode()
public void gotoFirst()
public void gotoBack()
public boolean hasNext()
public boolean hasPrev()
public java.lang.Object next()
public java.lang.Object back()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |