Instance Method

isSubsetOfSet:

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

Declaration

- (BOOL)isSubsetOfSet:(NSSet<ObjectType> *)set;

Parameters

set

The set with which to compare the receiving ordered set.

Return Value

YES if every object in the receiving ordered set is also present in set, otherwise NO.

See Also

Comparing Sets

- isEqualToOrderedSet:

Compares the receiving ordered set to another ordered set.

- 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.