java.lang.Object
xyz.cofe.iter.ArrayIterator<T>
- All Implemented Interfaces:
java.util.Iterator<T>
public class ArrayIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
Итератор по массиву
-
Constructor Summary
Constructors
Constructor |
Description |
ArrayIterator(T[] array) |
Конструктор
|
-
Method Summary
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
-
Constructor Details
-
public ArrayIterator(
T[] array)
Конструктор
- Parameters:
array
- исходный массив
-
Method Details
-
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<T>
-
- Specified by:
next
in interface java.util.Iterator<T>
-
public void remove()
- Specified by:
remove
in interface java.util.Iterator<T>