Class ArrayIterator<T>
- java.lang.Object
-
- com.saperion.common.lang.iterator.ArrayIterator<T>
-
- Type Parameters:
T- type of objects to iterate
- All Implemented Interfaces:
java.util.Iterator<T>
public final class ArrayIterator<T> extends java.lang.Object implements java.util.Iterator<T>An
Iteratorthat iterates through all elements of an array.Iterator.remove()is not supported.- Author:
- agz
-
-
Constructor Summary
Constructors Constructor Description ArrayIterator(T[] array)Creates a newArrayIterator, that iterates through all elements of the specified array.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Tnext()voidremove()java.lang.StringtoString()
-
-
-
Constructor Detail
-
ArrayIterator
public ArrayIterator(T[] array)
Creates a newArrayIterator, that iterates through all elements of the specified array. The specified array must not benull.- Parameters:
array- array to iterate through
-
-