SFSDKSafeMutableDictionary Class Reference

Conforms to KeyType
ObjectType
Declared in SFSDKSafeMutableDictionary.h

  allKeys

@property (copy, nonatomic, readonly) NSArray *allKeys

  allValues

@property (copy, nonatomic, readonly) NSArray *allValues

– objectForKey:

Retrieves object for the key specified (Thread Safe)

- (nullable ObjectType)objectForKey:(KeyType<NSCopying>)aKey

Return Value

object for specified key

Declared In

SFSDKSafeMutableDictionary.h

– objectForKeyedSubscript:

Retrieves object for the key specified (Thread Safe)

- (nullable ObjectType)objectForKeyedSubscript:(KeyType<NSCopying>)key

Return Value

object for specified key

Declared In

SFSDKSafeMutableDictionary.h

– allKeysForObject:

Retreives all keys for object specified (Thread Safe)

- (NSArray<KeyType> *)allKeysForObject:(ObjectType)anObject

Return Value

Array with keys

Declared In

SFSDKSafeMutableDictionary.h

– dictionary

Get a NSDictionary from the mutable Dictionary (Thread Safe)

- (NSDictionary<KeyType,ObjectType> *)dictionary

Declared In

SFSDKSafeMutableDictionary.h

– setObject:forKey:

Sets object for key specified (Thread Safe)

- (void)setObject:(ObjectType)object forKey:(KeyType<NSCopying>)aKey

Parameters

object

to add to collection

aKey

for to map the object to

Declared In

SFSDKSafeMutableDictionary.h

– setObject:forKeyedSubscript:

Sets object for key specified (Thread Safe)

- (void)setObject:(ObjectType)object forKeyedSubscript:(KeyType<NSCopying>)aKey

Parameters

object

to add to collection

aKey

for to map the object to

Declared In

SFSDKSafeMutableDictionary.h

– removeObject:

Removes object for key specified (Thread Safe)

- (void)removeObject:(KeyType<NSCopying>)aKey

Parameters

aKey

to remove from the collection.

Declared In

SFSDKSafeMutableDictionary.h

– removeAllObjects

removes all objects (Thread Safe)

- (void)removeAllObjects

Declared In

SFSDKSafeMutableDictionary.h

– removeObjects:

removes objects for keys (Thread Safe)

- (void)removeObjects:(NSArray<KeyType<NSCopying> > *)keys

Parameters

keys

to remove from the collection.

Declared In

SFSDKSafeMutableDictionary.h

– addEntries:

Adds entries from the dictionary passed in (Thread Safe)

- (void)addEntries:(NSDictionary<KeyType,ObjectType> *)otherDictionary

Parameters

otherDictionary

to add to collection

Declared In

SFSDKSafeMutableDictionary.h

– setDictionary:

Sets the dictionary collection to the dictionary passed in(Thread Safe)

- (void)setDictionary:(NSDictionary<KeyType,ObjectType> *)dictionary

Parameters

dictionary

to set

Declared In

SFSDKSafeMutableDictionary.h