Skip to main content

IIterator

Short summary

An interface for iterators that yield IObjects

AccessAbstractFinalExtendsImplements
-NoNoIIterateable, CNM_AbstractObject.IObject-

UML Diagram

Properties

current

Type: CNM_AbstractObject.IObject

This property returns the current element which the iterator points to.

Methods

getNext

This method returns the next object from the iterator and move the iterator to it.

hasNext

  • Return type: BOOL

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

moveNext

  • Return type: BOOL

This method returns true if there exists another element to iterate to and fetches the next element to THIS^.current.

reset

  • Return type: VOID

This method resets the iterator.

Code

Declaration

INTERFACE IIterator EXTENDS IIterateable, CNM_AbstractObject.IObject