Class ZipIterator<T1,T2>
java.lang.Object
com.github.basking2.sdsai.itrex.iterators.ZipIterator<T1,T2>
-
Constructor Summary
ConstructorDescriptionZipIterator
(Iterator<T1> iterator1, boolean pad1, T1 pad1Values, Iterator<T2> iterator2, boolean pad2, T2 pad2Values) Zip two iterators with lots of padding options.ZipIterator
(Iterator<T1> iterator1, Iterator<T2> iterator2) Construct a zip iterator that offers no new elements when either iterator is complete. -
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
-
Constructor Details
-
ZipIterator
public ZipIterator(Iterator<T1> iterator1, boolean pad1, T1 pad1Values, Iterator<T2> iterator2, boolean pad2, T2 pad2Values) Zip two iterators with lots of padding options.- Parameters:
iterator1
- The first iterator.pad1
- If the first iterator is empty, pad with a value.pad1Values
- The value to pad with.iterator2
- The second iterator.pad2
- If the second iterator is empty, pad with a value.pad2Values
- The value to pad with.
-
ZipIterator
Construct a zip iterator that offers no new elements when either iterator is complete.- Parameters:
iterator1
- The first iterator. This is not padded.iterator2
- The second iterator. This is not padded.
-
-
Method Details