Class MappingIterator<A,​B>

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

    public final class MappingIterator<A,​B>
    extends ImmutableIterator<B>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Fn1<? super A,​? extends B> function  
      private java.util.Iterator<A> iterator  
    • Constructor Summary

      Constructors 
      Constructor Description
      MappingIterator​(Fn1<? super A,​? extends B> function, java.util.Iterator<A> iterator)  
    • Method Summary

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

      • function

        private final Fn1<? super A,​? extends B> function
      • iterator

        private final java.util.Iterator<A> iterator
    • Constructor Detail

      • MappingIterator

        public MappingIterator​(Fn1<? super A,​? extends B> function,
                               java.util.Iterator<A> iterator)
    • Method Detail

      • hasNext

        public boolean hasNext()
      • next

        public B next()