Progress.Collections.SortedSetIterator<T> class
- Last Updated: March 15, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Represents the type of the object returned by the GetIterator() method on a SortedSet<T> class, allowing the traversal of elements in the
sorted set. The elements are returned in the order defined by the comparer
implementation used by the sorted set.
This class is FINAL and cannot be extended.
Serializable:
No
Constructor(s)
The class constructor is reserved for system use only.
Super Class
Interfaces
Public Properties
| Current property (Iterator) | — |
Public Methods
| MoveNext( ) method (Iterator) | Reset( ) method (Iterator) |
Public Events
This class does not contain events.
Notes
- The iterator is constructed with the generic information used to instantiate the
SortedSet. For example, for aSortedSet<Person>object, the iterator is constructed asSortedSetIterator<Person>(). - An iterator instance becomes invalid when the associated
SortedSet<T>object has elements added or removed after the givenSortedSetIterator<T>object is created, as the elements are no longer in the exact original location they occupied when the iterator was created. A new one must be acquired via theGetIterator()method. - The iterator does not skip elements whose value is unknown, or an invalid object
reference. Iteration traverses each of the unknown and invalid elements in the
set as if they were legitimate entries in the set. If an invalid object
reference (a deleted object reference) is encountered, then the iterator sets
the
Currentproperty to the unknown value (?).