Class Iterables.Intersperse<A>

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

    static final class Iterables.Intersperse<A>
    extends java.lang.Object
    implements java.lang.Iterable<A>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.Supplier<A> a  
      private java.lang.Iterable<? extends A> as  
    • Constructor Summary

      Constructors 
      Constructor Description
      Intersperse​(java.lang.Iterable<? extends A> as, java.util.function.Supplier<A> a)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<A> 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
      • a

        private final java.util.function.Supplier<A> a
    • Constructor Detail

      • Intersperse

        Intersperse​(java.lang.Iterable<? extends A> as,
                    java.util.function.Supplier<A> a)
    • Method Detail

      • iterator

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