|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Iterator
A class for sequentially accessing collections The Iterator should initially be pointing before the first element of the collection, so the first call to next() returns the first element.
| Method Summary | |
|---|---|
boolean |
hasNext()
tests if there is a next item to return |
java.lang.Object |
next()
Returns the next element a moves the iterator to the next position. |
| Method Detail |
|---|
java.lang.Object next()
throws OutOfBounds
OutOfBounds - if there is no next elementboolean hasNext()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||