243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
|
* @return The value for the given key or `nil` if the key was not found
*/
- (nullable id)valueForKey: (OFString *)key;
/**
* @brief Sets a value for a key.
*
* This is equivalent to OFMutableDictionary#setObject:forKey:. If the
* dictionary is immutable, an @ref OFUndefinedKeyException is thrown.
*
* @param key The key to set
* @param value The value to set the key to
*/
- (void)setValue: (nullable id)value forKey: (OFString *)key;
/**
* @brief Checks whether the dictionary contains an object equal to the
* specified object.
*
|
|
<
>
|
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
|
* @return The value for the given key or `nil` if the key was not found
*/
- (nullable id)valueForKey: (OFString *)key;
/**
* @brief Sets a value for a key.
*
* This is equivalent to OFMutableDictionary#setObject:forKey:.
*
* @param key The key to set
* @param value The value to set the key to
* @throw OFUndefinedKeyException The dictionary is immutable
*/
- (void)setValue: (nullable id)value forKey: (OFString *)key;
/**
* @brief Checks whether the dictionary contains an object equal to the
* specified object.
*
|