NSMutableArray(FunkyNilTolerant)
@interface NSMutableArray <ObjectType>
(FunkyNilTolerant) @end
This is a category on NSMutableArray to convert the current set into a nil-tolerant collection.
See
Immutable counterpartNSArray(FunkyNilTolerant)
-
This method converts the regular NSMutableArray into a nil-tolerant collection, with the same content.
See
Immutable counterpart-[NSArray(FunkyNilTolerant) nilTolerant]
Declaration
Objective-C
- (FunkyNilTolerantNSMutableArray *)nilTolerant;
Return Value
A nil-tolerant NSMutableArray (a.k.a.
FunkyNilTolerantNSMutableArray
) with the same content. -
This method creates a new nil-tolerant mutable collection.
See
Immutable counterpart+[NSArray(FunkyNilTolerant) nilTolerantArray]
Declaration
Objective-C
+ (FunkyNilTolerantNSMutableArray *)nilTolerantArray;
Return Value
A nil-tolerant NSMutableArray (a.k.a.
FunkyNilTolerantNSMutableArray
). -
This method creates a new nil-tolerant mutable collection by providing its capacity.
Declaration
Objective-C
+ (FunkyNilTolerantNSMutableArray *)nilTolerantArrayWithCapacity: (NSUInteger)capacity;
Parameters
capacity
The desired capacity of the collection
Return Value
A nil-tolerant NSMutableArray (a.k.a.
FunkyNilTolerantNSMutableArray
) with the givencapacity
. -
This method creates a new nil-tolerant collection, containing the given object parameter.
See
Immutable counterpart+[NSArray(FunkyNilTolerant) nilTolerantArrayWithObject:]
Declaration
Objective-C
+ (FunkyNilTolerantNSMutableArray *)nilTolerantArrayWithObject: (ObjectType)object;
Parameters
object
The object parameter intended to be stored in the collection
Return Value
A nil-tolerant NSArray (a.k.a.
FunkyNilTolerantNSMutableArray
). -
This method creates a new nil-tolerant collection, containing the original content of the passed array parameter.
See
Immutable counterpart+[NSArray(FunkyNilTolerant) nilTolerantArrayWithArray:]
Declaration
Objective-C
+ (FunkyNilTolerantNSMutableArray *)nilTolerantArrayWithArray: (NSArray<ObjectType> *)array;
Parameters
array
The items intended to be stored in the collection
Return Value
A nil-tolerant NSArray (a.k.a.
FunkyNilTolerantNSMutableArray
).