Collections in object-oriented ABL
- Last Updated: November 18, 2022
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
In some applications, you may want to create and manage groups of related objects. Collections provide a way to do this. A collection represents a group of objects that have some shared significance. In many object-oriented programming languages, different collection structures are available for holding such objects, each with their own set of capabilities. Structures include lists, maps, sets, stacks, queues, and other types. Each structure varies in how they store, sort, and compare elements. A list, sorted set, and hash map are among the most commonly used collection types and are available as built-in objects in object-oriented ABL. Other types are not supported as built-in objects at this time.
Progress.Collections framework.
| Interface | Description |
|---|---|
| Progress.Collections.IIterator<T> interface | This interface enables you to traverse through a collection.
Properties and methods include Current,
MoveNext(), and Reset(). |
| Progress.Collections.IIterable<T> interface | This interface is the root interface for all the collection classes and defines the
most primitive set of operations that can be applied to a collection. The
GetIterator() method allows you to get an iterator, for
traversing a collection. |
| Progress.Collections.ICollection<T> interface | This interface is common to all collections and defines properties and methods to
manipulate generic collections. Properties and methods include
Add(), AddAll(),
Clear(), Contains(),
Count, IsEmpty(), and
Remove(). |
The next topics describe the collections available as built-in objects in ABL.