37 unsigned long _mutations;
50 + (
id)mapWithCapacity:(
size_t)capacity;
57 + (
id)mapWithKeysAndObjects:(
id)firstKey, ...;
73 - (
id)initWithCapacity:(
size_t)capacity;
83 - (
id)objectForKey:(
id)key;
88 - (
BOOL)containsObject:(
id)key;
95 - (
BOOL)setObject:(
id)
object forKey:(
id)key;
101 - (
BOOL)removeObjectForKey:(
id)key;
123 - (
BOOL)isEqual:(
id)anObject;
uintptr_t hash()
Returns a hash of the keys and objects, which is the same for equal maps.
Objects found by keys, which can be changed.
void removeAllObjects()
Removes every key and object, but keeps the room for them.
size_t count()
Returns the number of keys.
Defines the NXCollection protocol, for objects which hold other objects.
NXString * description()
Returns the descriptions of the keys and objects, such as "{a: 1, b: 2}".
id copy()
Returns a new map of the same keys and objects, or nil if there isn't enough memory.
id map()
Returns an empty map.
bool BOOL
A Boolean value.
NXArray * allKeys()
Returns the keys, in no particular order, or nil if there isn't enough memory.
An ordered list of objects, which can be changed.
The base class for objects in the Foundation framework.
Objects which hold other objects, such as arrays, which can be gone through with a for...
struct objc_object * id
A pointer to an instance of a class.
NXArray * allObjects()
Returns the objects, in the same order as allKeys, or nil if there isn't enough memory.