SFSDKSafeMutableSet Class Reference

Inherits from NSObject
Declared in SFSDKSafeMutableSet.h

– anyObject

Adds a given object to the set, if it is not already a member.

- (id)anyObject

Declared In

SFSDKSafeMutableSet.h

– containsObject:

Returns true if the object exists in the set.

- (BOOL)containsObject:(id)anObject

Declared In

SFSDKSafeMutableSet.h

– addObject:

Adds a given object to the set, if it is not already a member.

- (void)addObject:(id)obj

Declared In

SFSDKSafeMutableSet.h

– addObjectsFromArray:

Adds to the set each object contained in a given array that is not already a member.

- (void)addObjectsFromArray:(NSArray *)array

Declared In

SFSDKSafeMutableSet.h

– removeAllObjects

Removes all objects from the set.

- (void)removeAllObjects

Declared In

SFSDKSafeMutableSet.h

– removeObject:

Removes a given object from the set.

- (void)removeObject:(id)object

Declared In

SFSDKSafeMutableSet.h

– unionSet:

Removes each object in another given set from the receiving set, if present.

- (void)unionSet:(NSSet *)otherSet

Declared In

SFSDKSafeMutableSet.h

– minusSet:

Empties the receiving set, then adds each object contained in another given set.

- (void)minusSet:(NSSet *)set

Declared In

SFSDKSafeMutableSet.h

– intersectSet:

Empties the receiving set, then adds each object contained in another given set.

- (void)intersectSet:(NSSet *)otherSet

Declared In

SFSDKSafeMutableSet.h

– setSet:

Empties the receiving set, then adds each object contained in another given set.

- (void)setSet:(NSSet *)otherSet

Declared In

SFSDKSafeMutableSet.h

– filterUsingPredicate:

Filter the set using a predicate.

- (void)filterUsingPredicate:(NSPredicate *)predicate

Declared In

SFSDKSafeMutableSet.h

– enumerateObjectsUsingBlock:

Enumerate objects in the set safely, using a block.

- (void)enumerateObjectsUsingBlock:(void ( ^ ) ( id obj , BOOL *stop ))block

Declared In

SFSDKSafeMutableSet.h

– asSet

Get a NSSet from the mutable set

- (NSSet *)asSet

Declared In

SFSDKSafeMutableSet.h

– allObjects

Return an Array of all Objects

- (NSArray *)allObjects

Declared In

SFSDKSafeMutableSet.h

– isEqualToSet:

Returns true if the sets are equal.

- (BOOL)isEqualToSet:(SFSDKSafeMutableSet *)otherSet

Declared In

SFSDKSafeMutableSet.h

  count

The number of elements in this set.

@property (nonatomic, readonly) NSUInteger count

Declared In

SFSDKSafeMutableSet.h

+ set

A convenience method to allocate and initialize a new instance of a SFSDKSafeMutableSet.

+ (id)set

Return Value

A new SFSDKSafeMutableSet instance.

Declared In

SFSDKSafeMutableSet.h

+ setWithCapacity:

A convenience method to allocate and initialize a new instance of a SFSDKSafeMutableSetWithCapacity.

+ (id)setWithCapacity:(NSUInteger)numItems

Return Value

A new SFSDKSafeMutableSet instance.

Declared In

SFSDKSafeMutableSet.h