Class LazyList.UnionListIterator

  • All Implemented Interfaces:
    java.util.Iterator<E>, java.util.ListIterator<E>
    Enclosing class:
    LazyList<E>

    public class LazyList.UnionListIterator
    extends LazyCollection.WrappedListIterator
    ListIterator that returns first the elements of the underlying collection, then the elements of the other collection.
    • Field Detail

      • s

        protected final java.util.List<? extends E> s
      • added

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

        protected boolean innerNext
      • addedPrev

        protected boolean addedPrev
    • Constructor Detail

      • UnionListIterator

        public UnionListIterator​(java.util.List<? extends E> s)
        Creates a new LazyList.UnionListIterator for the underlying collection and s.
        Parameters:
        s - the collection to union
      • UnionListIterator

        public UnionListIterator​(java.util.List<? extends E> s,
                                 int index)
        Creates a new LazyList.UnionListIterator for the underlying collection and s.
        Parameters:
        s - the collection to union
        index - the iterator starting index.