public class ComposedIterator<T> extends AbstractIterator<T>
END_OF_DATA
Constructor and Description |
---|
ComposedIterator(Collection<? extends Iterator<T>> delegates) |
ComposedIterator(Iterator<? extends Iterator<T>> delegates) |
ComposedIterator(Iterator<T>... delegates) |
Modifier and Type | Method and Description |
---|---|
protected Object |
computeNextElement()
Returns the next iteration element, or
AbstractIterator.END_OF_DATA if the end of the iteration has been reached. |
static <T> Iterator<T> |
fromIterables(Collection<? extends Iterable<T>> iterables) |
empty, hasNext, next, remove
public ComposedIterator(Collection<? extends Iterator<T>> delegates)
protected Object computeNextElement()
AbstractIterator
AbstractIterator.END_OF_DATA
if the end of the iteration has been reached.computeNextElement
in class AbstractIterator<T>
public static <T> Iterator<T> fromIterables(Collection<? extends Iterable<T>> iterables)
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.