getNext
Short summary
This method returns the next object from the iterator and move the iterator to it. If there is no next object, this should return NULL.
Example:
WHILE(iterator.hasNext())DO
iterator.getNext().hashcode;
END_WHILE
Return: CNM_AbstractObject.IObject: next object in collection, NULL if End of Collection is reached
- Return type: CNM_AbstractObject.IObject
Parameters
none
Code
Declaration
METHOD FINAL getNext :CNM_AbstractObject.IObject
Implementation
THIS^.iterate(execute := TRUE );
getNext := THIS^.current;