Class ImmutableListIterator<T>

  • All Implemented Interfaces:
    java.util.Iterator<T>, java.util.ListIterator<T>

    public final class ImmutableListIterator<T>
    extends ImmutableIterator<T>
    implements java.util.ListIterator<T>
    • Constructor Detail

      • ImmutableListIterator

        public ImmutableListIterator​(java.util.List<T> list,
                                     int index)
    • Method Detail

      • hasPrevious

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

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

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

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

        public void set​(T o)
        Specified by:
        set in interface java.util.ListIterator<T>
      • add

        public void add​(T o)
        Specified by:
        add in interface java.util.ListIterator<T>