Class CompositeIterator<T>
java.lang.Object
ch.obermuhlner.scriptengine.java.util.CompositeIterator<T>
- Type Parameters:
T- the type of elements returned by this iterator
- All Implemented Interfaces:
Iterator<T>
A
Iterator that will iterate over several iterators.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int -
Constructor Summary
ConstructorsConstructorDescriptionCompositeIterator(Iterator<? extends T>... iterators) Creates aCompositeIteratorover the specified iterators. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
iterators
-
iteratorIndex
private int iteratorIndex
-
-
Constructor Details
-
CompositeIterator
Creates aCompositeIteratorover the specified iterators.- Parameters:
iterators- theIterators
-
-
Method Details