NSMutableSet(FunkyNilStoring)
@interface NSMutableSet <ObjectType>
(FunkyNilStoring) @end
This is a category on NSMutableSet to convert the current set into a nil-storing collection.
See
Immutable counterpartNSSet(FunkyNilStoring)
-
This method converts the regular NSMutableSet into a nil-storing collection, with the same content.
See
Immutable counterpart-[NSSet(FunkyNilStoring) nilStoring]Declaration
Objective-C
- (FunkyNilStoringNSMutableSet *)nilStoring;Return Value
A nil-storing NSMutableSet (a.k.a.
FunkyNilStoringNSMutableSet) with the same content. -
This method creates a new nil-storing mutable collection.
See
Immutable counterpart+[NSSet(FunkyNilStoring) nilStoringSet]Declaration
Objective-C
+ (FunkyNilStoringNSMutableSet *)nilStoringSet;Return Value
A nil-storing NSMutableSet (a.k.a.
FunkyNilStoringNSMutableSet). -
This method creates a new nil-storing mutable collection by providing its capacity.
Declaration
Objective-C
+ (FunkyNilStoringNSMutableSet *)nilStoringSetWithCapacity:(NSUInteger)capacity;Parameters
capacityThe desired capacity of the collection
Return Value
A nil-storing NSMutableSet (a.k.a.
FunkyNilStoringNSMutableSet) with the givencapacity. -
This method creates a new nil-storing collection, containing the given object parameter.
See
Immutable counterpart+[NSSet(FunkyNilStoring) nilStoringSetWithObject:]Declaration
Objective-C
+ (FunkyNilStoringNSMutableSet *)nilStoringSetWithObject:(ObjectType)object;Parameters
objectThe object parameter intended to be stored in the collection
Return Value
A nil-storing NSSet (a.k.a.
FunkyNilStoringNSMutableSet). -
This method creates a new nil-storing collection, containing the original content of the passed set parameter.
See
Immutable counterpart+[NSSet(FunkyNilStoring) nilStoringSetWithSet:]Declaration
Objective-C
+ (FunkyNilStoringNSMutableSet *)nilStoringSetWithSet:(NSSet<ObjectType> *)set;Parameters
setThe items intended to be stored in the collection
Return Value
A nil-storing NSSet (a.k.a.
FunkyNilStoringNSMutableSet).
View on GitHub
Install in Dash
NSMutableSet(FunkyNilStoring) Category Reference