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
capacity
The 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
object
The 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
set
The items intended to be stored in the collection
Return Value
A nil-storing NSSet (a.k.a.
FunkyNilStoringNSMutableSet
).