@ Nonnull public static < ELEMENTTYPE > Iterator < ELEMENTTYPE > getCombinedIterator ( @ Nullable final Iterator < ? extends ELEMENTTYPE > aIter1 , @ Nullable final Iterator < ? extends ELEMENTTYPE > aIter2 ) { return new CombinedIterator <> ( aIter1 , aIter2 ) ; }
Get a merged iterator of both iterators . The first iterator is iterated first the second one afterwards .