Class MappingIterable.MyIterator<E,​V>

  • All Implemented Interfaces:
    java.util.Iterator<V>
    Enclosing class:
    MappingIterable<T,​R>

    private static class MappingIterable.MyIterator<E,​V>
    extends java.lang.Object
    implements java.util.Iterator<V>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private @NotNull java.util.function.Function<E,​V> myFunction  
      private @NotNull java.util.Iterator<E> myIterator  
    • Constructor Summary

      Constructors 
      Constructor Description
      MyIterator​(@NotNull java.util.Iterator<E> iterator, @NotNull java.util.function.Function<E,​V> function)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      V next()  
      • 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

        forEachRemaining, remove
    • Field Detail

      • myIterator

        @NotNull
        private final @NotNull java.util.Iterator<E> myIterator
      • myFunction

        @NotNull
        private final @NotNull java.util.function.Function<E,​V> myFunction
    • Constructor Detail

      • MyIterator

        public MyIterator​(@NotNull
                          @NotNull java.util.Iterator<E> iterator,
                          @NotNull
                          @NotNull java.util.function.Function<E,​V> function)
    • Method Detail

      • hasNext

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

        public V next()
        Specified by:
        next in interface java.util.Iterator<E>