Class Iterables.Zipper<A,​B,​C>

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

    static class Iterables.Zipper<A,​B,​C>
    extends Iterables.IterableToString<C>
    Iterable that combines two iterables using a combiner function.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) class  Iterables.Zipper.Iter  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Iterable<A> as  
      private java.lang.Iterable<B> bs  
      private java.util.function.BiFunction<A,​B,​C> f  
    • Constructor Summary

      Constructors 
      Constructor Description
      Zipper​(java.lang.Iterable<A> as, java.lang.Iterable<B> bs, java.util.function.BiFunction<A,​B,​C> f)  
    • Method Summary

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

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

        forEach, spliterator
    • Field Detail

      • as

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

        private final java.lang.Iterable<B> bs
      • f

        private final java.util.function.BiFunction<A,​B,​C> f
    • Constructor Detail

      • Zipper

        Zipper​(java.lang.Iterable<A> as,
               java.lang.Iterable<B> bs,
               java.util.function.BiFunction<A,​B,​C> f)
    • Method Detail

      • iterator

        public java.util.Iterator<C> iterator()