Class TransformIterator<I,O>

java.lang.Object
org.simpleflatmapper.util.TransformIterator<I,O>
All Implemented Interfaces:
Iterator<O>

public final class TransformIterator<I,O> extends Object implements Iterator<O>
  • Constructor Details

    • TransformIterator

      public TransformIterator(Iterator<I> it, Function<? super I,? extends O> transformer)
  • Method Details

    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<I>
    • hasNext

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

      public O next()
      Specified by:
      next in interface Iterator<I>