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.ObjectWrapper 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 intcurrentIndex()intmoveTo(int index)Moves the iterator to a point in the iterator where the next index isindex.voidmoveToBeginning()Move to the initial position in the list (where nextNode() returns the first node in the listvoidmoveToFirst()Move to the first postion in the iteratorvoidmoveToLast()Move to the last position in the iteratorNodenextNode()NodepreviousNode()
-
-
-
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
-
-