Package net.sf.basedb.util
Class ArrayIterator<E>
- java.lang.Object
-
- net.sf.basedb.util.ArrayIterator<E>
-
-
Constructor Summary
Constructors Constructor Description ArrayIterator(E[] array)
Create a newArrayIterator
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
E
next()
void
remove()
This operation is not supported.-
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
-
-
-
-
Field Detail
-
array
private final E[] array
The array to iterate.
-
index
private int index
The index of the next element to return.
-
-
Constructor Detail
-
ArrayIterator
public ArrayIterator(E[] array)
Create a newArrayIterator
object.- Parameters:
array
- Array to set.
-
-
Method Detail
-
remove
public void remove()
This operation is not supported.- Specified by:
remove
in interfaceIterator<E>
- Throws:
UnsupportedOperationException
- Is always thrown
-
-