16 #import "OFDictionary.h"
18 OF_ASSUME_NONNULL_BEGIN
44 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
46 # define ObjectType id
55 + (instancetype)dictionaryWithCapacity: (
size_t)capacity;
64 - (instancetype)initWithCapacity: (
size_t)capacity;
74 - (void)setObject: (ObjectType)object forKey: (KeyType)key;
87 - (void)setObject: (nullable ObjectType)object forKeyedSubscript: (KeyType)key;
94 - (void)removeObjectForKey: (KeyType)key;
106 - (void)addEntriesFromDictionary:
107 (
OFDictionary OF_GENERIC(KeyType, ObjectType) *)dictionary;
109 #ifdef OF_HAVE_BLOCKS
122 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
128 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:30
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:58
An abstract class for storing and changing objects in a dictionary.
Definition: OFMutableDictionary.h:44
void removeAllObjects()
Removes all objects.
Definition: OFMutableDictionary.m:174
void makeImmutable()
Converts the mutable dictionary to an immutable dictionary.
Definition: OFMutableDictionary.m:217