Class TransformingIterator<I,​O>

  • All Implemented Interfaces:
    java.util.Iterator<O>

    public class TransformingIterator<I,​O>
    extends java.lang.Object
    implements java.util.Iterator<O>
    • Constructor Summary

      Constructors 
      Constructor Description
      TransformingIterator​(java.util.function.Function<I,​? extends O> function, java.util.Iterator<I> wrapped)  
    • Method Summary

      Modifier and Type Method Description
      boolean hasNext()  
      O 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
    • Constructor Detail

      • TransformingIterator

        public TransformingIterator​(java.util.function.Function<I,​? extends O> function,
                                    java.util.Iterator<I> wrapped)
    • Method Detail

      • hasNext

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

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