Class FastArrayList.ListItr

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

    private class FastArrayList.ListItr
    extends FastArrayList.Itr
    implements java.util.ListIterator<E>
    An optimized version of AbstractList.ListItr
    • Constructor Summary

      Constructors 
      Constructor Description
      ListItr​(int index)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(E e)  
      boolean hasPrevious()  
      int nextIndex()  
      E previous()  
      int previousIndex()  
      void set​(E e)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
      • Methods inherited from interface java.util.ListIterator

        hasNext, next, remove
    • Constructor Detail

      • ListItr

        ListItr​(int index)
    • Method Detail

      • hasPrevious

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

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

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

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

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

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