Skip to main content

hasNext

Short summary

This method returns if there exists another element to iterate to.

Example:

WHILE(iterator.hasNext())DO
iterator.getNext().foo();
END_WHILE

Return: TRUE: Iterator has a next object that can be fetched with getNext() FALSE: Iterator finished

  • Return type: BOOL

Parameters

none

Code

Declaration

METHOD ABSTRACT hasNext :BOOL