- All Implemented Interfaces:
Iterator<T>
A simple iterator to iterate over an array.
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ArrayIterator
public ArrayIterator(@Nullable
T[] array)
-
ArrayIterator
public ArrayIterator(@Nullable
T[] array,
int start)
-
Method Details
-
-
next
@Nullable
public T next()
- Specified by:
next
in interface Iterator<T>
-