|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimple.util.ArrayIterator<E>
E - Class of the elements in the arraypublic class ArrayIterator<E>
Takes an Object array and creates an iterator.
Created: 2006
| Field Summary | |
|---|---|
private E[] |
array
|
private int |
pos
|
| Constructor Summary | |
|---|---|
ArrayIterator(E[] array)
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
E |
next()
|
void |
remove()
Not used. |
| 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 pos
| Constructor Detail |
|---|
public ArrayIterator(E[] array)
array - Array to iterate.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<E>public E next()
next in interface java.util.Iterator<E>public void remove()
remove in interface java.util.Iterator<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||