Class CombineIterator<E>

java.lang.Object
net.cscott.jutil.CombineIterator<E>
All Implemented Interfaces:
Iterator<E>

public class CombineIterator<E> extends Object implements Iterator<E>
A CombineIterator combines several different Iterators into one. Its remove() removes the last element returned from the Iterator it came from. A Stream of streams does the same, with Stream.flatMap(java.util.function.Function<? super T, ? extends java.util.stream.Stream<? extends R>>).
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>