Represents the type of the object returned by the GetIterator() method in a HashMap<K,V> object, allowing traversal of the elements in the hash map. The elements are returned in no specific order.

The class is FINAL and cannot be extended.

Serializable:

No

Constructor(s)

The class constructor is reserved for system use only.

Super Class

Progress.Lang.Object class

Interfaces

Progress.Collections.IIterator<T> interface where T is Progress.Collections.KeyValuePair<K,V>

Public Properties

Current property (Iterator)

Public Methods

MoveNext( ) method (Iterator) Reset( ) method (Iterator)

Public Events

This class has no public events.

Notes

  • The iterator is constructed with the generic information used to instantiate the HashMap class. For example, for a HashMap<Employee, Manager> object, the iterator is constructed as HashMapIterator<Employee, Manager>().
  • An iterator instance becomes invalid when the associated HashMap object has elements added or removed after the given HashMapIterator object is created. After that point, a new one can be acquired via the GetIterator() method.
  • The iterator traverses each of the key-value pair elements in the collection. Note that the Current property will not resolve to an invalid reference (that is, the Unknown value (?)) as you cannot delete a KeyValuePair<K,V> object. The key-value pair object may have a reference to an unknown or invalid key or value object (if they got deleted).

See also

<T> Generic type reference, GetIterator( ) method (Collections), Progress.Collections.HashMap<K,V> class