Class IterablePair<A,B>

java.lang.Object
net.imglib2.util.IterablePair<A,B>
Type Parameters:
A -
B -
All Implemented Interfaces:
Iterable<Pair<A,B>>

public class IterablePair<A,B> extends Object implements Iterable<Pair<A,B>>
An Iterable which is backed by two other Iterables, whose iteration produces a Pair of objects corresponding to those given by the two respective iterations of the backing Iterables. That is: the two backing Iterables are iterated in synchrony, and their elements combined into a single Pair accessor object.

When two Iterables 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