Klasse ArrayListIterator<E>

java.lang.Object
ch.nolix.core.container.arraylist.ArrayListIterator<E>
Typparameter:
E - is the type of the elements of the parent array of a ArrayListIterator.
Alle implementierten Schnittstellen:
CopyableIterator<E>, Copyable<CopyableIterator<E>>, Iterator<E>

public final class ArrayListIterator<E> extends Object implements CopyableIterator<E>
Autor:
Silvan Wyss
  • Methodendetails

    • forArrayAndMaxNextIndex

      public static <T> ArrayListIterator<T> forArrayAndMaxNextIndex(T[] array, int maxNextIndex)
    • forArrayAndStartIndexAndMaxNextIndex

      public static <T> ArrayListIterator<T> forArrayAndStartIndexAndMaxNextIndex(T[] array, int startIndex, int maxIndex)
    • getCopy

      public CopyableIterator<E> getCopy()
      Angegeben von:
      getCopy in Schnittstelle Copyable<E>
      Gibt zurück:
      a new copy of the current Copyable.
    • hasNext

      public boolean hasNext()
      Angegeben von:
      hasNext in Schnittstelle Iterator<E>
    • next

      public E next()
      Angegeben von:
      next in Schnittstelle Iterator<E>