Class Pair.LeftIterator<L,R>

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

private static class Pair.LeftIterator<L,R> extends Object implements Iterator<L>
Iterator that returns the left field of each pair.
  • Field Details

  • Constructor Details

  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<L>
    • next

      public L next()
      Specified by:
      next in interface Iterator<L>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<L>