Instance Method

isEqualToOrderedSet:

Compares the receiving ordered set to another ordered set.

Declaration

- (BOOL)isEqualToOrderedSet:(NSOrderedSet<ObjectType> *)other;

Parameters

other

The ordered set with which to compare the receiving ordered set.

Return Value

YES if the contents of other are equal to the contents of the receiving ordered set, otherwise NO.

Discussion

Two ordered sets have equal contents if they each have the same number of members, if each member of one ordered set is present in the other, and the members are in the same order.

See Also

Comparing Sets

- intersectsOrderedSet:

Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given ordered set.

- intersectsSet:

Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given set.

- isSubsetOfOrderedSet:

Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given ordered set.

- isSubsetOfSet:

Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given set.