Class CombinedIterator<ELEMENTTYPE>
java.lang.Object
com.helger.commons.collection.iterate.CombinedIterator<ELEMENTTYPE>
- Type Parameters:
ELEMENTTYPE- The type to be enumerated
- All Implemented Interfaces:
Iterator<ELEMENTTYPE>
A specific enumeration iterating over two consecutive enumerations.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionCombinedIterator(Iterator<? extends ELEMENTTYPE> aIter1, Iterator<? extends ELEMENTTYPE> aIter2) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
CombinedIterator
public CombinedIterator(@Nullable Iterator<? extends ELEMENTTYPE> aIter1, @Nullable Iterator<? extends ELEMENTTYPE> aIter2)
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<ELEMENTTYPE>
-
next
- Specified by:
nextin interfaceIterator<ELEMENTTYPE>
-
remove
public void remove()- Specified by:
removein interfaceIterator<ELEMENTTYPE>
-
toString
-
create
-