Class Paired<Left,​Right>

  • All Implemented Interfaces:
    java.util.Iterator<Pair<Left,​Right>>

    public final class Paired<Left,​Right>
    extends DelegatingIterator<Pair<Left,​Right>>
    An Iterator combining the elements of two given Iterators into an Iterator of Pairs.

    This iterates as many elements as the shorter of both Iterators.

    • Constructor Summary

      Constructors 
      Constructor Description
      Paired​(java.util.Iterator<Left> leftIterator, java.util.Iterator<Right> rightIterator)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • Paired

        public Paired​(java.util.Iterator<Left> leftIterator,
                      java.util.Iterator<Right> rightIterator)