CBLMutableDictionary
@protocol CBLMutableDictionary <CBLDictionary, CBLMutableDictionaryFragment>CBLMutableDictionary protocol defines a set of methods for writing dictionary data.
- 
                  
                  Set a value for the given key. Allowed value types are CBLMutableArray, CBLBlob, CBLMutableDictionary, NSArray, NSDate, NSDictionary, NSNumber, NSNull, NSString. The NSArrays and NSDictionaries must contain only the above types. An NSDate value will be converted to an ISO-8601 format string. A nil value will be converted an NSNull. DeclarationObjective-C - (void)setValue:(nullable id)value forKey:(nonnull NSString *)key;Swift func setValue(_ value: Any?, forKey key: String)ParametersvalueThe value. keyThe key. 
- 
                  
                  Set an String object for the given key. A nil value will be converted to an NSNull. DeclarationObjective-C - (void)setString:(nullable NSString *)value forKey:(nonnull NSString *)key;Swift func setString(_ value: String?, forKey key: String)ParametersvalueThe String object. 
- 
                  
                  Set an NSNumber object for the given key. A nil value will be converted to an NSNull. DeclarationObjective-C - (void)setNumber:(nullable NSNumber *)value forKey:(nonnull NSString *)key;Swift func setNumber(_ value: NSNumber?, forKey key: String)ParametersvalueThe NSNumber object. 
- 
                  
                  Set an integer value for the given key. DeclarationObjective-C - (void)setInteger:(NSInteger)value forKey:(nonnull NSString *)key;Swift func setInteger(_ value: Int, forKey key: String)ParametersvalueThe integer value. 
- 
                  
                  Set a long long value for the given key. DeclarationObjective-C - (void)setLongLong:(long long)value forKey:(nonnull NSString *)key;Swift func setLongLong(_ value: Int64, forKey key: String)ParametersvalueThe long long value. 
- 
                  
                  Set a float value for the given key. DeclarationObjective-C - (void)setFloat:(float)value forKey:(nonnull NSString *)key;Swift func setFloat(_ value: Float, forKey key: String)ParametersvalueThe float value. 
- 
                  
                  Set a double value for the given key. DeclarationObjective-C - (void)setDouble:(double)value forKey:(nonnull NSString *)key;Swift func setDouble(_ value: Double, forKey key: String)ParametersvalueThe double value. 
- 
                  
                  Set a boolean value for the given key. DeclarationObjective-C - (void)setBoolean:(BOOL)value forKey:(nonnull NSString *)key;Swift func setBoolean(_ value: Bool, forKey key: String)ParametersvalueThe boolean value. 
- 
                  
                  Set a Date object for the given key. A nil value will be converted to an NSNull. DeclarationObjective-C - (void)setDate:(nullable NSDate *)value forKey:(nonnull NSString *)key;Swift func setDate(_ value: Date?, forKey key: String)ParametersvalueThe Date object. 
- 
                  
                  Set a CBLDictionary object for the given key. A nil value will be converted to an NSNull. DeclarationObjective-C - (void)setDictionary:(nullable CBLDictionary *)value forKey:(nonnull NSString *)key;Swift func setDictionary(_ value: CBLDictionary?, forKey key: String)ParametersvalueThe CBLDictionary object. 
- 
                  
                  Removes a given key and its value from the dictionary. DeclarationObjective-C - (void)removeValueForKey:(nonnull NSString *)key;Swift func removeValue(forKey key: String)ParameterskeyThe key. 
- 
                  
                  Set data for the dictionary. Allowed value types are CBLArray, CBLBlob, CBLDictionary, NSArray, NSDate, NSDictionary, NSNumber, NSNull, and NSString. The NSArrays and NSDictionaries must contain only the above types. DeclarationObjective-C - (void)setData:(nullable NSDictionary<NSString *, id> *)data;Swift func setData(_ data: [String : Any]?)ParametersdataThe data. 
- 
                  
                  Get a property’s value as a CBLMutableArray, which is a mapping object of an array value. Returns nil if the property doesn’t exists, or its value is not an array. DeclarationObjective-C - (nullable CBLMutableArray *)arrayForKey:(nonnull NSString *)key;Swift func array(forKey key: String) -> CBLMutableArray?ParameterskeyThe key. Return ValueThe CBLMutableArray object or nil if the property doesn’t exist. 
- 
                  
                  Get a property’s value as a CBLMutableDictionary, which is a mapping object of a dictionary value. Returns nil if the property doesn’t exists, or its value is not a dictionary. DeclarationObjective-C - (nullable CBLMutableDictionary *)dictionaryForKey:(nonnull NSString *)key;Swift func forKey(_ key: String) -> CBLMutableDictionary?ParameterskeyThe key. Return ValueThe CBLMutableDictionary object or nil if the key doesn’t exist. 
- 
                  
                  Subscripting access to a CBLMutableFragment object that represents the value of the dictionary by key. DeclarationObjective-C - (nullable CBLMutableFragment *)objectForKeyedSubscript: (nonnull NSString *)key;Swift subscript(key: String) -> CBLMutableFragment? { get }ParameterskeyThe key. Return ValueThe CBLMutableFragment object. 
 CBLMutableDictionary Protocol Reference
        CBLMutableDictionary Protocol Reference