This class is used by the Keys property of Progress.Collections.HashMap<K,V> class to return a set containing all the keys in the HashMap instance. This set is backed by the HashMap and is not a static copy of the keys in the map at the time the property is accessed. This means that any changes to the HashMap are reflected in the KeySet instance.

KeySet does not allow operations that change the set. You can only access the keys in the set. The KeySet object is garbage collected when there are no more references to it.

The class is FINAL and cannot be extended.

Serializable:

No

Constructor(s)

This class does not contain a constructor.

Super Class

Progress.Lang.Object class

Interfaces

Progress.Collections.ISet<T> interface

Public Properties

Count property (Collections) IsEmpty property (Collections)

Public Methods

Contains( ) method (Collections) Get( ) method (Set Collections)
GetIterator( ) method (Collections)

Public Events

This class does not contain events.

Notes

  • The Add(), AddAll(), Clear() and Remove() methods are not permitted with this class and raise an error if called.

See also

<T> Generic type reference