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>>
AnIterable
which is backed by two otherIterable
s, whose iteration produces aPair
of objects corresponding to those given by the two respective iterations of the backingIterable
s. That is: the two backingIterable
s are iterated in synchrony, and their elements combined into a singlePair
accessor object.When two
Iterable
s are given which produce an unequal number of elements, the iteration of theIterablePair
ends when either of the two backing iterations ends.- Author:
- Curtis Rueden, Ellen T Arena
-
-
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()
-