Class LazyCollection.UnionIterator

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

    public class LazyCollection.UnionIterator
    extends LazyCollection.WrappedIterator
    Iterator that returns first the elements of the underlying collection, then the elements of the other collection.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Iterator<? extends E> added  
      protected boolean innerNext  
      protected java.lang.Iterable<? extends E> s  
    • 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Field Detail

      • s

        protected final java.lang.Iterable<? extends E> s
      • added

        protected java.util.Iterator<? extends E> added
      • innerNext

        protected boolean innerNext
    • Constructor Detail

      • UnionIterator

        public UnionIterator​(java.lang.Iterable<? extends E> s)
        Creates a new LazyCollection.UnionIterator for the underlying collection and s.
        Parameters:
        s - the collection to union with this