Interface TreeIterator<T>

  • All Superinterfaces:
    Iterator<T>
    All Known Implementing Classes:
    DescendantsTreeIterator

    public interface TreeIterator<T>
    extends Iterator<T>
    Tree iterator traverses a n-ary tree in a way that a parent node is visited before its children and children are returned left-to-right.
    • Method Detail

      • skipChildren

        void skipChildren()
        Skip children of the last element returned by the iterator.
        Throws:
        IllegalStateException - if the next method has not yet been called