All Packages Class Hierarchy This Package Previous Next Index
Class DataStructures.CursorListItr
java.lang.Object
|
+----DataStructures.CursorListItr
- public class CursorListItr
- extends Object
Linked list implementation of the list iterator
using a header node; cursor version.
- See Also:
- CursorList
advance()
- Advance the current position to the next node in the list.
isPastEnd()
- Test if the current position is past the end of the list.
retrieve()
- Return the item stored in the current position.
isPastEnd
public boolean isPastEnd()
- Test if the current position is past the end of the list.
- Returns:
- true if the current position is null-equivalent.
retrieve
public Object retrieve()
- Return the item stored in the current position.
- Returns:
- the stored item or null if the current position
is not in the list.
advance
public void advance()
- Advance the current position to the next node in the list.
If the current position is null, then do nothing.
All Packages Class Hierarchy This Package Previous Next Index