17 #import "OFDictionary.h"
19 OF_ASSUME_NONNULL_BEGIN
39 #ifdef OF_HAVE_GENERICS
45 # define ObjectType id
56 + (instancetype)dictionaryWithCapacity: (size_t)capacity;
65 - initWithCapacity: (size_t)capacity;
75 - (void)setObject: (ObjectType)object
77 - (void)setObject: (ObjectType)object
78 forKeyedSubscript: (KeyType)key;
85 - (void)removeObjectForKey: (KeyType)key;
98 - (void)replaceObjectsUsingBlock: (of_dictionary_replace_block_t)block;
106 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
111 OF_ASSUME_NONNULL_END
void makeImmutable()
Converts the mutable dictionary to an immutable dictionary.
Definition: OFMutableDictionary.m:217
id OF_NONNULL(^ of_dictionary_replace_block_t)(id key, id object)
A block for replacing objects in an OFMutableDictionary.
Definition: OFMutableDictionary.h:31
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:61
An abstract class for storing and changing objects in a dictionary.
Definition: OFMutableDictionary.h:47
void removeAllObjects()
Removes all objects.
Definition: OFMutableDictionary.m:184