org.proteios.util
Class ArrayIterator<E>
java.lang.Object
org.proteios.util.ArrayIterator<E>
- All Implemented Interfaces:
- Iterator<E>
public class ArrayIterator<E>
- extends Object
- implements Iterator<E>
This class implements the Iterator interface
for an array of objects.
- Version:
- 2.0
- Author:
- Nicklas
|
Constructor Summary |
ArrayIterator(E[] array)
Create a new ArrayIterator object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayIterator
public ArrayIterator(E[] array)
- Create a new
ArrayIterator object.
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<E>
next
public E next()
- Specified by:
next in interface Iterator<E>
remove
public void remove()
- This operation is not supported.
- Specified by:
remove in interface Iterator<E>
- Throws:
UnsupportedOperationException - Is always thrown