Package javax.jcr

Interface NodeIterator

All Superinterfaces:
Iterator, RangeIterator
All Known Implementing Classes:
FilteringNodeIterator, FrozenNodeIteratorAdapter, NodeIteratorAdapter

public interface NodeIterator extends RangeIterator
Allows easy iteration through a list of Nodes with nextNode as well as a skip method inherited from RangeIterator.
  • Method Details

    • nextNode

      Node nextNode()
      Returns the next Node in the iteration.
      Returns:
      the next Node in the iteration.
      Throws:
      NoSuchElementException - if iteration has no more Nodes.