Package net.didion.jwnl.data.list
Class NodePrinter.NodeListIteratorWrapper
- java.lang.Object
-
- net.didion.jwnl.data.list.NodePrinter.NodeListIteratorWrapper
-
- Enclosing class:
- NodePrinter
private static final class NodePrinter.NodeListIteratorWrapper extends java.lang.Object
Wrapper for a NodeListIterator that allows the next pointer to be moved to any index.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ListIterator
_itr
-
Constructor Summary
Constructors Constructor Description NodeListIteratorWrapper(TypeCheckingList.TypeCheckingListIterator itr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
currentIndex()
int
moveTo(int index)
Moves the iterator to a point in the iterator where the next index isindex
.void
moveToBeginning()
Move to the initial position in the list (where nextNode() returns the first node in the listvoid
moveToFirst()
Move to the first postion in the iteratorvoid
moveToLast()
Move to the last position in the iteratorNode
nextNode()
Node
previousNode()
-
-
-
Constructor Detail
-
NodeListIteratorWrapper
public NodeListIteratorWrapper(TypeCheckingList.TypeCheckingListIterator itr)
-
-
Method Detail
-
nextNode
public Node nextNode()
-
previousNode
public Node previousNode()
-
currentIndex
public int currentIndex()
-
moveTo
public int moveTo(int index)
Moves the iterator to a point in the iterator where the next index isindex
.
-
moveToBeginning
public void moveToBeginning()
Move to the initial position in the list (where nextNode() returns the first node in the list
-
moveToFirst
public void moveToFirst()
Move to the first postion in the iterator
-
moveToLast
public void moveToLast()
Move to the last position in the iterator
-
-