JadeIterableIF Interface

The JadeIterableIF interface, defined in RootSchema, provides the contract for an implementing class to be able to be iterated. JadeIterableIF simply exposes a JadeIteratorIF implementation through its createIterator method. This exposed JadeIteratorIF implementation can then be used to iterate the JadeIterableIF receiver.

A JadeIterableIF interface instance, or similarly a JadeIterableIF implementor instance, can be the target of a foreach instruction. See also "Iterating using the JadeIterableIF Interface", in Chapter 1 of the Developer's Reference.

The JadeIterableIF interface is implemented by the RootSchema Collection and JadeJsonObject classes, which satisfies the createIterator method by creating RootSchema Iterator class instances.

For details about implementing the JadeIterableIF interface for a class selected in the Class Browser of your schema, see "Implementing an Interface", in Chapter 14 (Adding and Maintaining Interfaces), of the Development Environment User's Guide.

The automatically generated stub methods in classes that implement the interface contain no body logic. It is your responsibility to provide the source code that meets your application requirements for each stub method.

For details about the JadeIterableIF interface method, see "JadeIterableIF Interface Method", in the following subsection.

Implemented by:   Collection, JadeJsonObject

Extended by:   JadeReverseIterableIF

2020.0.01 and higher