Class MappingIterable<A,​B>

  • All Implemented Interfaces:
    java.lang.Iterable<B>

    public final class MappingIterable<A,​B>
    extends java.lang.Object
    implements java.lang.Iterable<B>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Iterable<A> as  
      private java.util.List<Fn1<?,​?>> mappers  
    • Constructor Summary

      Constructors 
      Constructor Description
      MappingIterable​(Fn1<? super A,​? extends B> fn, java.lang.Iterable<A> as)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<B> iterator()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Field Detail

      • as

        private final java.lang.Iterable<A> as
      • mappers

        private final java.util.List<Fn1<?,​?>> mappers
    • Constructor Detail

      • MappingIterable

        public MappingIterable​(Fn1<? super A,​? extends B> fn,
                               java.lang.Iterable<A> as)
    • Method Detail

      • iterator

        public java.util.Iterator<B> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<A>