JadeReverseIterableIF Interface

The JadeReverseIterableIF interface, defined in RootSchema, extends the JadeIterableIF interface and provides the contract for an implementing class to be reverse‑iterable; that is, it can be iterated in both a forward or a reversed direction. The JadeReverseIterableIF interface simply exposes a JadeReversibleIteratorIF implementation through its createReversibleIterator method. This exposed JadeReversibleIteratorIF implementation interface can then be used to iterate the JadeReverseIterableIF receiver in either direction.

As the JadeReverseIterableIF interface extends the JadeIterableIF interface, the interface or implementor instance can be the target of a foreach instruction, and can also use the reversed option of the foreach instruction. For details, see "Iterating using the JadeIterableIF Interface", in Chapter 1 of the JADE Developer's Reference.

The JadeReverseIterableIF interface is implemented by the RootSchema Collection class, which satisfies the createReversibleIterator method by creating RootSchema Iterator class instances that can be iterated in both directions.

For details about implementing the JadeReverseIterableIF 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 JADE 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 JadeReverseIterableIF interface method, see "JadeReverseIterableIF Interface Method", in the following subsection.

Implemented by:   Collection

Extends:   JadeIterableIF

2020.0.01 and higher