Class LazyCollection.IteratorToListIterator

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

    public class LazyCollection.IteratorToListIterator
    extends LazyCollection.CachingIterator
    implements java.util.ListIterator<E>
    Converts an Iterator to a ListIterator. Does not support modification of the underlying LazyList.
    • Method Detail

      • add

        public void add​(E o)
        Unsupported.
        Specified by:
        add in interface java.util.ListIterator<E>
        Parameters:
        o - the object to add
        Throws:
        java.lang.UnsupportedOperationException
      • set

        public void set​(E o)
        Unsupported.
        Specified by:
        set in interface java.util.ListIterator<E>
        Parameters:
        o - the object to set
        Throws:
        java.lang.UnsupportedOperationException
      • hasPrevious

        public boolean hasPrevious()
        Specified by:
        hasPrevious in interface java.util.ListIterator<E>
      • next

        public E next()
        Specified by:
        next in interface java.util.Iterator<E>
        Specified by:
        next in interface java.util.ListIterator<E>
        Overrides:
        next in class LazyCollection.CachingIterator
      • nextIndex

        public int nextIndex()
        Specified by:
        nextIndex in interface java.util.ListIterator<E>
      • previous

        public E previous()
        Specified by:
        previous in interface java.util.ListIterator<E>
      • previousIndex

        public int previousIndex()
        Specified by:
        previousIndex in interface java.util.ListIterator<E>