Package uk.ac.ebi.utils.collections
Class TupleIterator<T>
java.lang.Object
uk.ac.ebi.utils.collections.TupleIterator<T>
- All Implemented Interfaces:
Iterator<T[]>
Takes an array of iterators and returns an iterator of tuples. Each tuple is built by taking the
next element
of each iterator. The iteration stops as son as there is at least one
iterator that hasn't any more elements to return
.
The result is read-only and Iterator.remove()
throws an UnsupportedOperationException
, since
its default implementation is not touched.- Author:
- brandizi
- Date:
- 25 Jul 2017