The ‘IIterator’ interface defines a common interface for all iterator objects.
IIterator | The ‘IIterator’ interface defines a common interface for all iterator objects. |
Functions | |
hasNext | Returns a boolean value indicating whether or not the collection has another element beyond the current index. |
next | Returns the element at the current index and then moves on to the next. |
reset | Resets this iterator back to it’s starting index. |
Returns a boolean value indicating whether or not the collection has another element beyond the current index.
function hasNext():Boolean
Returns the element at the current index and then moves on to the next.
function next():Object
Resets this iterator back to it’s starting index.
function reset():void