Class CollectionsX.ArrayListIterator<E>

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

    public static class CollectionsX.ArrayListIterator<E>
    extends CollectionsX.ArrayIterator<E>
    implements java.util.ListIterator<E>
    • Constructor Detail

      • ArrayListIterator

        public ArrayListIterator​(java.lang.Object[] ary)
        Parameters:
        ary - an array or null.
      • ArrayListIterator

        public ArrayListIterator​(E[] ary,
                                 int index)
        Parameters:
        ary - an array or null.
    • Method Detail

      • hasPrevious

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

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

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

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

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

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