Package net.didion.jwnl.data.list
Class NodePrinter.NodeListIteratorWrapper
java.lang.Object
net.didion.jwnl.data.list.NodePrinter.NodeListIteratorWrapper
- Enclosing class:
NodePrinter
Wrapper for a NodeListIterator that allows the next pointer to be moved to any index.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
moveTo
(int index) Moves the iterator to a point in the iterator where the next index isindex
.void
Move to the initial position in the list (where nextNode() returns the first node in the listvoid
Move to the first postion in the iteratorvoid
Move to the last position in the iteratornextNode()
-
Field Details
-
_itr
-
-
Constructor Details
-
NodeListIteratorWrapper
-
-
Method Details
-
nextNode
-
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
-