|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.javelot.functionalj.util.ArrayIterator<T>
public class ArrayIterator<T>
Iterator that is used for arrays.
| Constructor Summary | |
|---|---|
ArrayIterator(T[] p_array)
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if the iteration has more elements. |
T |
next()
Returns the next element in the iteration of the array. |
void |
remove()
Throws a UnsupportedOperationException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayIterator(T[] p_array)
| Method Detail |
|---|
public boolean hasNext()
true if the iteration has more elements.
hasNext in interface Iterator<T>true if the iteration has more elements.
public T next()
throws NoSuchElementException
next in interface Iterator<T>NoSuchElementException - thrown if this method is called and the
iteration is past the end of the array.public void remove()
UnsupportedOperationException.
remove in interface Iterator<T>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||