Class MappingIterable.MyIterator<E,V>

java.lang.Object
com.vladsch.flexmark.experimental.util.collection.iteration.MappingIterable.MyIterator<E,V>
All Implemented Interfaces:
Iterator<V>
Enclosing class:
MappingIterable<T,R>

private static class MappingIterable.MyIterator<E,V> extends Object implements Iterator<V>
  • Field Details

    • myIterator

      @NotNull private final @NotNull Iterator<E> myIterator
    • myFunction

      @NotNull private final @NotNull Function<E,V> myFunction
  • Constructor Details

    • MyIterator

      public MyIterator(@NotNull @NotNull Iterator<E> iterator, @NotNull @NotNull Function<E,V> function)
  • Method Details

    • hasNext

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

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