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 aCompositeIterator
over the specified iterators. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
iterators
-
iteratorIndex
private int iteratorIndex
-
-
Constructor Details
-
CompositeIterator
Creates aCompositeIterator
over the specified iterators.- Parameters:
iterators
- theIterator
s
-
-
Method Details