Class ArrayIterator<T>
java.lang.Object
com.saperion.common.lang.iterator.ArrayIterator<T>
- Type Parameters:
T
- type of objects to iterate
- All Implemented Interfaces:
Iterator<T>
An Iterator
that iterates through all elements of an array.
Iterator.remove()
is not supported.
- Author:
- agz
-
Constructor Summary
ConstructorsConstructorDescriptionArrayIterator
(T[] array) Creates a newArrayIterator
, that iterates through all elements of the specified array. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
ArrayIterator
Creates a newArrayIterator
, that iterates through all elements of the specified array. The specified array must not benull
.- Parameters:
array
- array to iterate through
-
-
Method Details