Class AbstractLazyIterator<T>
- java.lang.Object
-
- org.apache.jackrabbit.commons.iterator.AbstractLazyIterator<T>
-
- All Implemented Interfaces:
Iterator<T>
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 thegetNext()
method which must return the next item in the iteration ornull
if the iteration as reached its end.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractLazyIterator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract T
getNext()
Returns the next element of this iteration ornull
if the iteration has finished.boolean
hasNext()
T
next()
void
remove()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
getNext
protected abstract T getNext()
Returns the next element of this iteration ornull
if the iteration has finished.- Returns:
- the next element.
-
-