Class LazyIteratorChain<T>
java.lang.Object
org.apache.jackrabbit.commons.iterator.LazyIteratorChain<T>
- Type Parameters:
T- type of values iterating over
- All Implemented Interfaces:
Iterator<T>
This class implements the concatenation of iterators. The implementation
is lazy in the sense that advancing of any iterator is deferred as much
as possible. Specifically no iterator is fully unwrapped at one single
point of time.
-
Constructor Summary
ConstructorsConstructorDescriptionLazyIteratorChain(Iterator<Iterator<T>> iterators) LazyIteratorChain(Iterator<T>... iterators) -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
LazyIteratorChain
-
LazyIteratorChain
-
-
Method Details
-
chain
Returns the concatenation of all iterators initerators.- Type Parameters:
T-- Parameters:
iterators-- Returns:
-
chain
Returns the concatenation of all iterators initerators.- Type Parameters:
T-- Parameters:
iterators-- Returns:
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-