Class NodePrinter.NodeListIteratorWrapper

java.lang.Object
net.didion.jwnl.data.list.NodePrinter.NodeListIteratorWrapper
Enclosing class:
NodePrinter

private static final class NodePrinter.NodeListIteratorWrapper extends Object
Wrapper for a NodeListIterator that allows the next pointer to be moved to any index.
  • Field Details

  • Constructor Details

  • Method Details

    • 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 is index.
    • 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