Class ComposedIterator<T>
java.lang.Object
org.eclipse.net4j.util.collection.AbstractIterator<T>
org.eclipse.net4j.util.collection.ComposedIterator<T>
- All Implemented Interfaces:
Iterator<T>
An iterator that is composed of multiple delegate iterators.
- Since:
- 3.4
- Author:
- Eike Stepper
-
Field Summary
Fields inherited from class org.eclipse.net4j.util.collection.AbstractIterator
END_OF_DATA -
Constructor Summary
ConstructorsConstructorDescriptionComposedIterator(Collection<? extends Iterator<T>> delegates) ComposedIterator(Iterator<? extends Iterator<T>> delegates) ComposedIterator(Iterator<T>... delegates) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectReturns the next iteration element, orAbstractIterator.END_OF_DATAif the end of the iteration has been reached.static <T> Iterator<T>fromIterables(Collection<? extends Iterable<T>> iterables) Methods inherited from class org.eclipse.net4j.util.collection.AbstractIterator
empty, hasNext, next, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
ComposedIterator
-
ComposedIterator
-
ComposedIterator
-
-
Method Details
-
computeNextElement
Description copied from class:AbstractIteratorReturns the next iteration element, orAbstractIterator.END_OF_DATAif the end of the iteration has been reached.- Specified by:
computeNextElementin classAbstractIterator<T>
-
fromIterables
-