20#import "OFDictionary.h"
22OF_ASSUME_NONNULL_BEGIN
48#if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
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;
133#if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
id(^ OFDictionaryReplaceBlock)(id key, id object)
A block for replacing objects in an OFMutableDictionary.
Definition OFMutableDictionary.h:34
An abstract class for storing objects in a dictionary.
Definition OFDictionary.h:84
An abstract class for storing and changing objects in a dictionary.
Definition OFMutableDictionary.h:48
void removeAllObjects()
Removes all objects.
Definition OFMutableDictionary.m:161
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