Class Pair.ZipIterator<L,R>

java.lang.Object
net.hydromatic.morel.util.Pair.ZipIterator<L,R>
Type Parameters:
L - Left-hand type
R - Right-hand type
All Implemented Interfaces:
Iterator<Pair<L,R>>
Enclosing class:
Pair<T1,T2>

private static class Pair.ZipIterator<L,R> extends Object implements Iterator<Pair<L,R>>
Iterator that pairs elements from two iterators.
  • Field Details

    • leftIterator

      private final Iterator<? extends L> leftIterator
    • rightIterator

      private final Iterator<? extends R> rightIterator
  • Constructor Details

    • ZipIterator

      ZipIterator(Iterator<? extends L> leftIterator, Iterator<? extends R> rightIterator)
  • Method Details