NSMutableDictionary(FunkyNilTolerant)
@interface NSMutableDictionary <KeyType, ObjectType>
(FunkyNilTolerant) @end
This is a category on NSMutableDictionary to convert the current set into a nil-tolerant collection.
See
Immutable counterpartNSDictionary(FunkyNilTolerant)
-
This method converts the regular NSMutableDictionary into a nil-tolerant collection, with the same content.
See
Immutable counterpart-[NSDictionary(FunkyNilTolerant) nilTolerant]
Declaration
Objective-C
- (FunkyNilTolerantNSMutableDictionary *)nilTolerant;
Return Value
A nil-tolerant NSMutableDictionary (a.k.a.
FunkyNilTolerantNSMutableDictionary
) with the same content. -
This method creates a new nil-tolerant mutable collection.
See
Immutable counterpart+[NSDictionary(FunkyNilTolerant) nilTolerantDictionary]
Declaration
Objective-C
+ (FunkyNilTolerantNSMutableDictionary *)nilTolerantDictionary;
Return Value
A nil-tolerant NSMutableDictionary (a.k.a.
FunkyNilTolerantNSMutableDictionary
). -
This method creates a new nil-tolerant mutable collection by providing its capacity.
Declaration
Objective-C
+ (FunkyNilTolerantNSMutableDictionary *)nilTolerantDictionaryWithCapacity: (NSUInteger)capacity;
Parameters
capacity
The desired capacity of the collection
Return Value
A nil-tolerant NSMutableDictionary (a.k.a.
FunkyNilTolerantNSMutableDictionary
) with the givencapacity
. -
This method creates a new nil-tolerant mutable collection, containing the given object parameter under the specified key.
See
Immutable counterpart+[NSDictionary(FunkyNilTolerant) nilTolerantDictionaryWithObject:forKey:]
Declaration
Objective-C
+ (FunkyNilTolerantNSMutableDictionary *) nilTolerantDictionaryWithObject:(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-tolerant NSMutableDictionary (a.k.a.
FunkyNilTolerantNSMutableDictionary
). -
This method creates a new nil-tolerant mutable collection, containing the original content of the passed dictionary parameter.
See
Immutable counterpart+[NSDictionary(FunkyNilTolerant) nilTolerantDictionaryWithDictionary:]
Declaration
Objective-C
+ (FunkyNilTolerantNSMutableDictionary *)nilTolerantDictionaryWithDictionary: (NSDictionary<KeyType, ObjectType> *)dictionary;
Return Value
A nil-tolerant NSMutableDictionary (a.k.a.
FunkyNilTolerantNSMutableDictionary
).