Class Iterables.Mapped<A,​B>

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

    static final class Iterables.Mapped<A,​B>
    extends java.lang.Object
    implements java.lang.Iterable<B>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Iterable<? extends A> as  
      private java.util.function.Function<? super A,​? extends B> f  
    • Constructor Summary

      Constructors 
      Constructor Description
      Mapped​(java.lang.Iterable<? extends A> as, java.util.function.Function<? super A,​? extends B> f)  
    • 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<? extends A> as
      • f

        private final java.util.function.Function<? super A,​? extends B> f
    • Constructor Detail

      • Mapped

        Mapped​(java.lang.Iterable<? extends A> as,
               java.util.function.Function<? super A,​? extends B> f)
    • Method Detail

      • iterator

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