Class CompositeIterator<E extends @Nullable Object>

java.lang.Object
org.springframework.util.CompositeIterator<E>
Type Parameters:
E - the element type
All Implemented Interfaces:
Iterator<E>

public class CompositeIterator<E extends @Nullable Object> extends Object implements Iterator<E>
Composite iterator that combines multiple other iterators, as registered via add(Iterator).

This implementation maintains a linked set of iterators which are invoked in sequence until all iterators are exhausted.

Since:
3.0
Author:
Erwin Vervaet, Juergen Hoeller, Yanming Zhou