9 #import <Foundation/Foundation.h> 10 @class CBLSubdocument;
12 NS_ASSUME_NONNULL_BEGIN
19 @property (readwrite, nullable, nonatomic) NSDictionary*
properties;
21 #pragma mark - GETTERS 26 - (nullable id) objectForKey: (NSString*)key;
30 - (BOOL) booleanForKey: (NSString*)key;
35 - (NSInteger) integerForKey: (NSString*)key;
40 - (float) floatForKey: (NSString*)key;
45 - (double) doubleForKey: (NSString*)key;
49 - (nullable NSString*) stringForKey: (NSString*)key;
57 - (nullable NSDate*) dateForKey: (NSString*)key;
59 #pragma mark - SETTERS 66 - (void) setObject: (nullable
id)value forKey: (NSString*)key;
69 - (void) setBoolean: (BOOL)value forKey: (NSString*)key;
72 - (void) setInteger: (NSInteger)value forKey: (NSString*)key;
75 - (void) setFloat: (
float)value forKey: (NSString*)key;
78 - (void) setDouble: (
double)value forKey: (NSString*)key;
80 #pragma mark - SUBSCRIPTS 83 - (nullable id) objectForKeyedSubscript: (NSString*)key;
86 - (void) setObject: (nullable
id)value forKeyedSubscript: (NSString*)key;
91 - (void) removeObjectForKey: (NSString*)key;
96 - (BOOL) containsObjectForKey: (NSString*)key;
110 NS_ASSUME_NONNULL_END
CBLProperties defines a JSON-compatible object, much like an NSMutableDictionary but with type-safe a...
Definition: CBLProperties.h:16
instancetype NS_UNAVAILABLE()
NSDictionary * properties
All of the properties contained in this object.
Definition: CBLProperties.h:19
Default implementation of CBLProperties protocol, which defines a JSON-compatible object...
Definition: CBLProperties.h:104