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, removepublic ComposedIterator(Collection<? extends Iterator<T>> delegates)
protected Object computeNextElement()
AbstractIteratorAbstractIterator.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) 2014 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v20.html