|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmartin.common.ArrayIterator<E>
E - the class of the arraypublic class ArrayIterator<E>
Class for easily constructing an iterator from an array
| Field Summary | |
|---|---|
private E[] |
array
|
(package private) int |
nextItem
|
| Constructor Summary | |
|---|---|
ArrayIterator(E[] array)
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
E |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private E[] array
int nextItem
| Constructor Detail |
|---|
public ArrayIterator(E[] array)
| 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 | |||||||||