Class LazyCollection.UnionSetIterator

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

    public class LazyCollection.UnionSetIterator
    extends LazyCollection.CachingSetIterator
    Iterator that returns first the elements of the underlying collection, then the elements of the other collection, with all duplicates removed.
    • 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

      • UnionSetIterator

        public UnionSetIterator​(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