Class Pair.RightIterator<L,​R>

  • Type Parameters:
    L - Left-hand type
    R - Right-hand type
    All Implemented Interfaces:
    Enclosing class:

    private static class Pair.RightIterator<L,​R>
    extends java.lang.Object
    implements java.util.Iterator<R>
    Iterator that returns the right field of each pair.
    • Field Summary

      Modifier and Type Field Description
      private java.util.Iterator<? extends java.util.Map.Entry<L,​R>> iterator  
    • Constructor Summary

      Constructor Description
      RightIterator​(java.util.Iterator<? extends java.util.Map.Entry<L,​R>> iterator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      R next()  
      void remove()  
      • Methods inherited from class java.lang.Object

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

    • Field Detail

      • iterator

        private final java.util.Iterator<? extends java.util.Map.Entry<L,​R>> iterator
    • Constructor Detail

      • RightIterator

        RightIterator​(java.util.Iterator<? extends java.util.Map.Entry<L,​R>> iterator)
    • Method Detail

      • hasNext

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

        public R next()
        Specified by:
        next in interface java.util.Iterator<L>
      • remove

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