Class Joined<E>

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

    public final class Joined<E>
    extends BaseIterator<E>
    An Iterator that serializes the values of multiple Iterables. This means, it iterates the elements of each Iterable before moving on to the next Iterable.
    See Also:
    Concat
    • Constructor Summary

      Constructors 
      Constructor Description
      Joined​(java.lang.Iterable<? extends E>... iterables)
      Constructor of an Iterator that serializes the elements of Iterables.
      Joined​(java.util.Iterator<? extends java.lang.Iterable<? extends E>> iterableIterator)
      Constructor of a Joined Iterator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      E next()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • Joined

        @SafeVarargs
        public Joined​(java.lang.Iterable<? extends E>... iterables)
        Constructor of an Iterator that serializes the elements of Iterables.
        Parameters:
        iterables - An array of Iterables.
      • Joined

        public Joined​(java.util.Iterator<? extends java.lang.Iterable<? extends E>> iterableIterator)
        Constructor of a Joined Iterator.
        Parameters:
        iterableIterator - An Iterator that iterates Iterables of type <E;gt;.
    • Method Detail

      • hasNext

        public boolean hasNext()
      • next

        public E next()