17 #import "OFDictionary.h" 19 OF_ASSUME_NONNULL_BEGIN
41 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) 43 # define ObjectType id 52 + (instancetype)dictionaryWithCapacity: (
size_t)capacity;
61 - initWithCapacity: (
size_t)capacity;
71 - (void)setObject: (ObjectType)object
73 - (void)setObject: (ObjectType)object
74 forKeyedSubscript: (KeyType)key;
81 - (void)removeObjectForKey: (KeyType)key;
93 - (void)addEntriesFromDictionary:
94 (
OFDictionary OF_GENERIC(KeyType, ObjectType) *)dictionary;
109 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN) 115 OF_ASSUME_NONNULL_END
id _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 and changing objects in a dictionary.
Definition: OFMutableDictionary.h:39
void removeAllObjects()
Removes all objects.
Definition: OFMutableDictionary.m:182
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:54
void makeImmutable()
Converts the mutable dictionary to an immutable dictionary.
Definition: OFMutableDictionary.m:227