Class MutableListIterator<T>

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

    public final class MutableListIterator<T>
    extends MutableIterator<T>
    implements java.util.ListIterator<T>
    • Constructor Detail

      • MutableListIterator

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