createIterator

createIterator() JadeIteratorIF;

The createIterator method of the JadeIterableIF interface returns a reference to the implementation of the JadeIteratorIF interface that can be used to iterate the JadeIterableIF receiver.

It is the responsibility of the JadeIterableIF implementor to ensure that the implementation of the createIterator method returns a JadeIteratorIF implementor that can iterate the receiver. If this is not done, undefined behavior may occur if attempting to use the JadeIterableIF implementor in a foreach instruction.

In addition, if this method is called, it is the responsibility of the caller to handle the deletion of any objects created by the implementation of the implementor.

2020.0.01 and higher