is Equal To(const OSDictionary *) Tests the equality of two OSDictionary objects.
Declaration virtual bool isEqualTo(
const OSDictionary *aDictionary) const;
Parameters aDictionary
The dictionary to be compared against the receiver.
Return Value true
if the dictionaries are equal, false
if not.
Overview Two OSDictionary objects are considered equal if they have same count, the same keys, and if the objects stored in each under a given key compare as equal using isEqualTo.
See Also
Miscellaneous - copy Collection
Creates a deep copy of the dictionary and its child collections.
- ensure Capacity
Ensures the dictionary has enough space to store the requested number of key/object pairs.
- free
Deallocates or releases any resources used by the OSDictionary instance.
- get Capacity
Returns the number of objects the dictionary can store without reallocating.
- get Count
Returns the current number of key/object pairs contained within the dictionary.
- get Object
Returns the object stored under a given key.
- is Equal To
Tests the equality of an OSDictionary to an arbitrary object.
- merge
Merges the contents of a dictionary into the receiver.
- serialize
Archives the receiver into the provided OSSerialize object.
- set Object
Stores an object in the dictionary under a key.
- with Dictionary
Creates and initializes an OSDictionary populated with the contents of another dictionary.