Interface TreeIterator<E>

All Superinterfaces:
Iterator<E>
All Known Implementing Classes:
AbstractTreeIterator

public interface TreeIterator<E> extends Iterator<E>
A mechanism for iterating over all the nodes of a tree; it provides the capability to prune the iteration so that all descendants of a particular node are skipped.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Prunes the iterator so that it skips over all the nodes below the most recent result of calling next().

    Methods inherited from interface java.util.Iterator

    forEachRemaining, hasNext, next, remove
  • Method Details

    • prune

      void prune()
      Prunes the iterator so that it skips over all the nodes below the most recent result of calling next().