public class ComposedIterator<T> extends AbstractIterator<T>
END_OF_DATA
Constructor and Description |
---|
ComposedIterator(java.util.Collection<? extends java.util.Iterator<T>> delegates) |
ComposedIterator(java.util.Iterator<? extends java.util.Iterator<T>> delegates) |
ComposedIterator(java.util.Iterator<T>... delegates) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
computeNextElement()
Returns the next iteration element, or
AbstractIterator.END_OF_DATA if the end of the iteration has been reached. |
static <T> java.util.Iterator<T> |
fromIterables(java.util.Collection<? extends java.lang.Iterable<T>> iterables) |
empty, hasNext, next, remove
public ComposedIterator(java.util.Iterator<T>... delegates)
public ComposedIterator(java.util.Collection<? extends java.util.Iterator<T>> delegates)
public ComposedIterator(java.util.Iterator<? extends java.util.Iterator<T>> delegates)
protected java.lang.Object computeNextElement()
AbstractIterator
AbstractIterator.END_OF_DATA
if the end of the iteration has been reached.computeNextElement
in class AbstractIterator<T>
public static <T> java.util.Iterator<T> fromIterables(java.util.Collection<? extends java.lang.Iterable<T>> iterables)
Copyright (c) 2004-2019 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 v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html