20 #import "OFDictionary.h" 22 OF_ASSUME_NONNULL_BEGIN
48 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) 50 # define ObjectType id 59 + (instancetype)dictionaryWithCapacity: (
size_t)capacity;
66 - (instancetype)
init OF_DESIGNATED_INITIALIZER;
75 - (instancetype)initWithCapacity: (
size_t)capacity OF_DESIGNATED_INITIALIZER;
85 - (void)setObject: (ObjectType)object forKey: (KeyType)key;
98 - (void)setObject: (nullable ObjectType)object forKeyedSubscript: (KeyType)key;
105 - (void)removeObjectForKey: (KeyType)key;
117 - (void)addEntriesFromDictionary:
118 (
OFDictionary OF_GENERIC(KeyType, ObjectType) *)dictionary;
120 #ifdef OF_HAVE_BLOCKS 133 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) 139 OF_ASSUME_NONNULL_END
void makeImmutable()
Converts the mutable dictionary to an immutable dictionary.
Definition: OFMutableDictionary.m:204
instancetype init()
Initializes an already allocated OFMutableDictionary to be empty.
Definition: OFMutableDictionary.m:117
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:82
An abstract class for storing and changing objects in a dictionary.
Definition: OFMutableDictionary.h:46
id(^ OFDictionaryReplaceBlock)(id key, id object)
A block for replacing objects in an OFMutableDictionary.
Definition: OFMutableDictionary.h:34
void removeAllObjects()
Removes all objects.
Definition: OFMutableDictionary.m:161