Package net.imglib2.util
Class IterablePair<A,B>
- java.lang.Object
-
- net.imglib2.util.IterablePair<A,B>
-
- Type Parameters:
A-B-
- All Implemented Interfaces:
java.lang.Iterable<Pair<A,B>>
public class IterablePair<A,B> extends java.lang.Object implements java.lang.Iterable<Pair<A,B>>
AnIterablewhich is backed by two otherIterables, whose iteration produces aPairof objects corresponding to those given by the two respective iterations of the backingIterables. That is: the two backingIterables are iterated in synchrony, and their elements combined into a singlePairaccessor object.When two
Iterables are given which produce an unequal number of elements, the iteration of theIterablePairends when either of the two backing iterations ends.
-
-
Constructor Summary
Constructors Constructor Description IterablePair(java.lang.Iterable<A> iter1, java.lang.Iterable<B> iter2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<Pair<A,B>>iterator()
-