AddAll( ) method (Map Collections)
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Adds all the key-value pairs from the collection passed in to the map collection. The method returns TRUE if at least one of the keys was added to the map, or FALSE if the map already contained all the elements from that collection, according to the equality comparer implementation. Any existing key in the map that is considered to be the same by the comparer implementation stays and is not replaced (that is, its value is not replaced). The comparer implementation decides if a key object is the same.
Return type: LOGICAL
Access: PUBLIC
Applies to: Progress.Collections.HashMap<K,V> class
Syntax
|
- othercollection
- The other collection containing the key-value pairs to be added to the map.
This method raises an error if:
- the comparer object specified via the specific constructor has become invalid.
- the collection passed in is not a valid object reference (including the
Unknown value (
?)). - the custom comparer raises an error.
- the key object is not a valid object reference (including the Unknown value
(
?)), if using the default equality comparer.
Note: There is no
UNDO processing for collections, so if an error is
raised after one or more pairs are added to the target collection, those items
remain in the target collection and are not undone.