AWSSynchronizedMutableDictionary

Objective-C

@interface AWSSynchronizedMutableDictionary<KeyType, ObjectType> : NSObject

@property (readonly, copy) NSArray<KeyType> *allKeys;
@property (readonly, copy) NSArray<ObjectType> *allValues;
@property (readonly, nonatomic, strong) NSUUID *instanceKey;

/// Create new instance.
- (instancetype)init;

/// Creates another dictionary which syncs on the same queue.
- (instancetype)syncedDictionary;

- (id)objectForKey:(id)aKey;
- (void)setObject:(id)anObject forKey:(id <NSCopying>)aKey;

- (void)removeObject:(id)object;
- (void)removeObjectForKey:(id)aKey;
- (void)removeAllObjects;

- (void)mutateWithBlock:(void (^)(NSMutableDictionary *))block;
+ (void)mutateSyncedDictionaries:(NSArray<AWSSynchronizedMutableDictionary *> *)dictionaries
                       withBlock:(void (^)(NSUUID *, NSMutableDictionary *))block;

- (BOOL)isEqualToAWSSynchronizedMutableDictionary:(AWSSynchronizedMutableDictionary *)other;

@end

Swift

class AWSSynchronizedMutableDictionary<KeyType, ObjectType> : NSObject where KeyType : AnyObject, ObjectType : AnyObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (readonly, copy) NSArray<KeyType> *allKeys

    Swift

    var allKeys: [KeyType]! { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly, copy) NSArray<ObjectType> *allValues

    Swift

    var allValues: [ObjectType]! { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly, nonatomic, strong) NSUUID *instanceKey

    Swift

    var instanceKey: UUID! { get }
  • Create new instance.

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()
  • Creates another dictionary which syncs on the same queue.

    Declaration

    Objective-C

    - (instancetype)syncedDictionary;

    Swift

    func synced() -> Self!
  • Undocumented

    Declaration

    Objective-C

    - (id)objectForKey:(id)aKey;

    Swift

    func object(forKey aKey: Any!) -> Any!
  • Undocumented

    Declaration

    Objective-C

    - (void)setObject:(id)anObject forKey:(id <NSCopying>)aKey;

    Swift

    func setObject(_ anObject: Any!, forKey aKey: NSCopying!)
  • Undocumented

    Declaration

    Objective-C

    - (void)removeObject:(id)object;

    Swift

    func remove(_ object: Any!)
  • Undocumented

    Declaration

    Objective-C

    - (void)removeObjectForKey:(id)aKey;

    Swift

    func removeObject(forKey aKey: Any!)
  • Undocumented

    Declaration

    Objective-C

    - (void)removeAllObjects;

    Swift

    func removeAllObjects()
  • Undocumented

    Declaration

    Objective-C

    - (void)mutateWithBlock:(void (^)(NSMutableDictionary *))block;

    Swift

    func mutate() async -> NSMutableDictionary?
  • Undocumented

    Declaration

    Objective-C

    + (void)mutateSyncedDictionaries:(NSArray<AWSSynchronizedMutableDictionary *> *)dictionaries
                           withBlock:(void (^)(NSUUID *, NSMutableDictionary *))block;

    Swift

    class func mutateSyncedDictionaries(_ dictionaries: [AWSSynchronizedMutableDictionary<AnyObject, AnyObject>]!, with block: ((UUID?, NSMutableDictionary?) -> Void)!)
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)isEqualToAWSSynchronizedMutableDictionary:(AWSSynchronizedMutableDictionary *)other;

    Swift

    func isEqual(to other: AWSSynchronizedMutableDictionary<AnyObject, AnyObject>!) -> Bool