de.caff.generics

## Class ArrayIterator<T>

- java.lang.Object
- - de.caff.generics.ArrayIterator<T>

- Type Parameters:
    `T` - element type of this iterator
  All Implemented Interfaces:
    java.util.Iterator<T>

      public class ArrayIterator<T>
      extends java.lang.Object
      implements java.util.Iterator<T>

  An iterator over an array.
  Since:
    December 24, 2020
  Author:
    Rammi

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ArrayIterator(T... array)` Constructor.
    `ArrayIterator(T[] array, int start, int length)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasNext()`
    `T` | `next()`

    - ### 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, remove`

- - ### Constructor Detail

    - #### ArrayIterator

          @SafeVarargs
          public ArrayIterator(@NotNull
                                            T... array)

      Constructor. This iterates over the complete array.
      Parameters:
        `array` - array to iterate over

    - #### ArrayIterator

          public ArrayIterator(@NotNull
                               T[] array,
                               int start,
                               int length)

      Constructor. This iterates over the given part of the array.
      Parameters:
        `array` - array to iterate over
        `start` - start of iteration
        `length` - number of iterations

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

      Specified by:
        `hasNext` in interface `java.util.Iterator<T>`

    - #### next

          public T next()

      Specified by:
        `next` in interface `java.util.Iterator<T>`