|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.ArrayIterator<E>
public class ArrayIterator<E>
This class implements the Iterator
interface
for an array of objects.
Field Summary | |
---|---|
private E[] |
array
The array to iterate. |
private int |
index
The index of the next element to return. |
Constructor Summary | |
---|---|
ArrayIterator(E[] array)
Create a new ArrayIterator object. |
Method Summary | |
---|---|
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 |
Field Detail |
---|
private final E[] array
private int index
Constructor Detail |
---|
public ArrayIterator(E[] array)
ArrayIterator
object.
array
- Array to set.Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator<E>
public E next()
next
in interface Iterator<E>
public void remove()
remove
in interface Iterator<E>
UnsupportedOperationException
- Is always thrown
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |