public static < S extends Iterator < ? extends T > , T > Iterator < T > iteratorOverIterators ( Iterator < S > iteratorsIterator ) { Objects . requireNonNull ( iteratorsIterator , "The iteratorsIterator is null" ) ; return new CombiningIterator < T > ( iteratorsIterator ) ; }
Returns an iterator that combines the iterators that are returned by the given iterator .