Package net.imglib2.util
Class IterablePair<A,B>
java.lang.Object
net.imglib2.util.IterablePair<A,B>
- Type Parameters:
A
-B
-
An
Iterable
which is backed by two other Iterable
s, whose
iteration produces a Pair
of objects corresponding to those given by
the two respective iterations of the backing Iterable
s. That is: the
two backing Iterable
s are iterated in synchrony, and their elements
combined into a single Pair
accessor object.
When two Iterable
s are given which produce an unequal number of
elements, the iteration of the IterablePair
ends when either
of the two backing iterations ends.
- Author:
- Curtis Rueden, Ellen T Arena