NSMutableDictionary(FunkyNilStoring)
@interface NSMutableDictionary <KeyType, ObjectType>
(FunkyNilStoring) @end
This is a category on NSMutableDictionary to convert the current set into a nil-storing collection.
See
Immutable counterpartNSDictionary(FunkyNilStoring)
-
This method converts the regular NSMutableDictionary into a nil-storing collection, with the same content.
See
Immutable counterpart-[NSDictionary(FunkyNilStoring) nilStoring]
Declaration
Objective-C
- (FunkyNilStoringNSMutableDictionary *)nilStoring;
Return Value
A nil-storing NSMutableDictionary (a.k.a.
FunkyNilStoringNSMutableDictionary
) with the same content. -
This method creates a new nil-storing mutable collection.
See
Immutable counterpart+[NSDictionary(FunkyNilStoring) nilStoringDictionary]
Declaration
Objective-C
+ (FunkyNilStoringNSMutableDictionary *)nilStoringDictionary;
Return Value
A nil-storing NSMutableDictionary (a.k.a.
FunkyNilStoringNSMutableDictionary
). -
This method creates a new nil-storing mutable collection by providing its capacity.
Declaration
Objective-C
+ (FunkyNilStoringNSMutableDictionary *)nilStoringDictionaryWithCapacity: (NSUInteger)capacity;
Parameters
capacity
The desired capacity of the collection
Return Value
A nil-storing NSMutableDictionary (a.k.a.
FunkyNilStoringNSMutableDictionary
) with the givencapacity
. -
This method creates a new nil-storing mutable collection, containing the given object parameter under the specified key.
See
Immutable counterpart+[NSDictionary(FunkyNilStoring) nilStoringDictionaryWithObject:forKey:]
Declaration
Objective-C
+ (FunkyNilStoringNSMutableDictionary *) nilStoringDictionaryWithObject:(ObjectType)object forKey:(id<NSCopying>)key;
Parameters
object
The object to be stored in the collection
key
The key under
object
should be put inReturn Value
A nil-storing NSMutableDictionary (a.k.a.
FunkyNilStoringNSMutableDictionary
). -
This method creates a new nil-storing mutable collection, containing the original content of the passed dictionary parameter.
See
Immutable counterpart+[NSDictionary(FunkyNilStoring) nilStoringDictionaryWithDictionary:]
Declaration
Objective-C
+ (FunkyNilStoringNSMutableDictionary *)nilStoringDictionaryWithDictionary: (NSDictionary<KeyType, ObjectType> *)dictionary;
Return Value
A nil-storing NSMutableDictionary (a.k.a.
FunkyNilStoringNSMutableDictionary
).