moveNext
Short summary
This method returns true if there exists another element to iterate to and fetches the next element to THIS^.current. It return false if no further elements exist in the collection, in this case it sets THIS^.current to NULL.
Example:
WHILE(iterator.moveNext())DO
iterator.current.foo();
END_WHILE
Return: TRUE: Iterator had a next object that can be now accessed with current
FALSE: Iterator finished, current will be NULL
- Return type:
BOOL
Parameters
none
Code
Declaration
METHOD FINAL moveNext :BOOL
Implementation
moveNext := THIS^.hasNext();
THIS^.getNext();