Instance Method

isEqualToDictionary:

Returns a Boolean value that indicates whether the contents of the receiving dictionary are equal to the contents of another given dictionary.

Declaration

- (BOOL)isEqualToDictionary:(NSDictionary<KeyType, ObjectType> *)otherDictionary;

Parameters

otherDictionary

The dictionary with which to compare the receiving dictionary.

Return Value

YES if the contents of otherDictionary are equal to the contents of the receiving dictionary, otherwise NO.

Discussion

Two dictionaries have equal contents if they each hold the same number of entries and, for a given key, the corresponding value objects in each dictionary satisfy the isEqual: test.

See Also