|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public Iterator
Extended iterator interface, which allows iterating over elements in a sequentiell order. It allows to set the starting point of the iteration and exposes the number of elements in the iteration.
Method Summary | |
---|---|
Boolean |
hasNext()
Returns true if the iteration has more elements. |
Object |
next()
Returns the next element in the iteration. |
Deferred |
size()
Returns the number of elements in this iterator. |
void |
setCursorPosition(int position)
Sets the zero-based position of the cursor, i.e the last element is addressed through size()-1. |
int |
getCursorPosition()
Returns the zero-based position of the cursor, i.e. zero for the first element |
Method Detail |
---|
Boolean hasNext()
Object next()
null
is returned and the position is not changed
Deferred size()
void setCursorPosition(int position)
position
-
position of the cursor. Defaults to zeroint getCursorPosition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |