Class AbstractLazyIterator<T>

java.lang.Object
org.apache.jackrabbit.commons.iterator.AbstractLazyIterator<T>
All Implemented Interfaces:
Iterator<T>
Direct Known Subclasses:
DescendantsIterator

public abstract class AbstractLazyIterator<T> extends Object implements Iterator<T>
AbstractLazyIterator provides basic iteration methods for a lazy loading iterator that does not support remove. Implementing classes only need to implement the getNext() method which must return the next item in the iteration or null if the iteration as reached its end.
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>