@@ -8195,19 +8195,19 @@ NS_ASSUME_NONNULL_END
8195
8195
// %PDDM-DEFINE VALUE_FOR_KEY_POD(KEY_TYPE, VALUE_TYPE, VNAME)
8196
8196
// %/**
8197
8197
// % * Gets the value for the given key.
8198
- // % *
8198
+ // % *
8199
8199
// % * @param value Pointer into which the value will be set, if found.
8200
8200
// % * @param key Key under which the value is stored, if present.
8201
- // % *
8201
+ // % *
8202
8202
// % * @return YES if the key was found and the value was copied, NO otherwise.
8203
8203
// % **/
8204
8204
// %- (BOOL)get##VNAME##:(nullable VALUE_TYPE *)value forKey:(KEY_TYPE)key;
8205
8205
// %PDDM-DEFINE VALUE_FOR_KEY_OBJECT(KEY_TYPE, VALUE_TYPE, VNAME)
8206
8206
// %/**
8207
8207
// % * Fetches the object stored under the given key.
8208
- // % *
8208
+ // % *
8209
8209
// % * @param key Key under which the value is stored, if present.
8210
- // % *
8210
+ // % *
8211
8211
// % * @return The object if found, nil otherwise.
8212
8212
// % **/
8213
8213
// %- (VALUE_TYPE)objectForKey:(KEY_TYPE)key;
@@ -8231,7 +8231,7 @@ NS_ASSUME_NONNULL_END
8231
8231
// %/**
8232
8232
// % * Class used for map fields of <##KEY_TYPE##, ##VALUE_TYPE##>
8233
8233
// % * values. This performs better than boxing into NSNumbers in NSDictionaries.
8234
- // % *
8234
+ // % *
8235
8235
// % * @note This class is not meant to be subclassed.
8236
8236
// % **/
8237
8237
// %@interface DICTIONARY_CLASS_DECL##VHELPER(KEY_NAME, VALUE_NAME, VALUE_TYPE) : NSObject <NSCopying>
@@ -8246,22 +8246,22 @@ NS_ASSUME_NONNULL_END
8246
8246
// %
8247
8247
// %/**
8248
8248
// % * Creates and initializes a dictionary with the single entry given.
8249
- // % *
8249
+ // % *
8250
8250
// % * @param ##VNAME_VAR The value to be placed in the dictionary.
8251
8251
// % * @param key ##VNAME_VAR$S## The key under which to store the value.
8252
- // % *
8252
+ // % *
8253
8253
// % * @return A newly instanced dictionary with the key and value in it.
8254
8254
// % **/
8255
8255
// %+ (instancetype)dictionaryWith##VNAME##:(VALUE_TYPE)##VNAME_VAR
8256
8256
// % ##VNAME$S## forKey:(KEY_TYPE##KisP$S##KisP)key;
8257
8257
// %
8258
8258
// %/**
8259
8259
// % * Creates and initializes a dictionary with the entries given.
8260
- // % *
8260
+ // % *
8261
8261
// % * @param ##VNAME_VAR##s The values to be placed in the dictionary.
8262
8262
// % * @param keys ##VNAME_VAR$S## The keys under which to store the values.
8263
8263
// % * @param count ##VNAME_VAR$S## The number of entries to store in the dictionary.
8264
- // % *
8264
+ // % *
8265
8265
// % * @return A newly instanced dictionary with the keys and values in it.
8266
8266
// % **/
8267
8267
// %+ (instancetype)dictionaryWith##VNAME##s:(const VALUE_TYPE ARRAY_ARG_MODIFIER##VHELPER()[__nullable])##VNAME_VAR##s
@@ -8271,30 +8271,30 @@ NS_ASSUME_NONNULL_END
8271
8271
// %/**
8272
8272
// % * Creates and initializes a dictionary with the entries from the given.
8273
8273
// % * dictionary.
8274
- // % *
8274
+ // % *
8275
8275
// % * @param dictionary Dictionary containing the entries to add to the dictionary.
8276
- // % *
8276
+ // % *
8277
8277
// % * @return A newly instanced dictionary with the entries from the given
8278
8278
// % * dictionary in it.
8279
8279
// % **/
8280
8280
// %+ (instancetype)dictionaryWithDictionary:(GPB##KEY_NAME##VALUE_NAME##Dictionary *)dictionary;
8281
8281
// %
8282
8282
// %/**
8283
8283
// % * Creates and initializes a dictionary with the given capacity.
8284
- // % *
8284
+ // % *
8285
8285
// % * @param numItems Capacity needed for the dictionary.
8286
- // % *
8286
+ // % *
8287
8287
// % * @return A newly instanced dictionary with the given capacity.
8288
8288
// % **/
8289
8289
// %+ (instancetype)dictionaryWithCapacity:(NSUInteger)numItems;
8290
8290
// %
8291
8291
// %/**
8292
8292
// % * Initializes this dictionary, copying the given values and keys.
8293
- // % *
8293
+ // % *
8294
8294
// % * @param ##VNAME_VAR##s The values to be placed in this dictionary.
8295
8295
// % * @param keys ##VNAME_VAR$S## The keys under which to store the values.
8296
8296
// % * @param count ##VNAME_VAR$S## The number of elements to copy into the dictionary.
8297
- // % *
8297
+ // % *
8298
8298
// % * @return A newly initialized dictionary with a copy of the values and keys.
8299
8299
// % **/
8300
8300
// %- (instancetype)initWith##VNAME##s:(const VALUE_TYPE ARRAY_ARG_MODIFIER##VHELPER()[__nullable])##VNAME_VAR##s
@@ -8303,18 +8303,18 @@ NS_ASSUME_NONNULL_END
8303
8303
// %
8304
8304
// %/**
8305
8305
// % * Initializes this dictionary, copying the entries from the given dictionary.
8306
- // % *
8306
+ // % *
8307
8307
// % * @param dictionary Dictionary containing the entries to add to this dictionary.
8308
- // % *
8308
+ // % *
8309
8309
// % * @return A newly initialized dictionary with the entries of the given dictionary.
8310
8310
// % **/
8311
8311
// %- (instancetype)initWithDictionary:(GPB##KEY_NAME##VALUE_NAME##Dictionary *)dictionary;
8312
8312
// %
8313
8313
// %/**
8314
8314
// % * Initializes this dictionary with the requested capacity.
8315
- // % *
8315
+ // % *
8316
8316
// % * @param numItems Number of items needed for this dictionary.
8317
- // % *
8317
+ // % *
8318
8318
// % * @return A newly initialized dictionary with the requested capacity.
8319
8319
// % **/
8320
8320
// %- (instancetype)initWithCapacity:(NSUInteger)numItems;
@@ -8323,7 +8323,7 @@ NS_ASSUME_NONNULL_END
8323
8323
// %
8324
8324
// %/**
8325
8325
// % * Adds the keys and values from another dictionary.
8326
- // % *
8326
+ // % *
8327
8327
// % * @param otherDictionary Dictionary containing entries to be added to this
8328
8328
// % * dictionary.
8329
8329
// % **/
@@ -8342,7 +8342,7 @@ NS_ASSUME_NONNULL_END
8342
8342
// %/**
8343
8343
// % * Class used for map fields of <##KEY_TYPE##, ##VALUE_TYPE##>
8344
8344
// % * values. This performs better than boxing into NSNumbers in NSDictionaries.
8345
- // % *
8345
+ // % *
8346
8346
// % * @note This class is not meant to be subclassed.
8347
8347
// % **/
8348
8348
// %@interface GPB##KEY_NAME##VALUE_NAME##Dictionary : NSObject <NSCopying>
@@ -8359,20 +8359,20 @@ NS_ASSUME_NONNULL_END
8359
8359
// %
8360
8360
// %/**
8361
8361
// % * Creates and initializes a dictionary with the given validation function.
8362
- // % *
8362
+ // % *
8363
8363
// % * @param func The enum validation function for the dictionary.
8364
- // % *
8364
+ // % *
8365
8365
// % * @return A newly instanced dictionary.
8366
8366
// % **/
8367
8367
// %+ (instancetype)dictionaryWithValidationFunction:(nullable GPBEnumValidationFunc)func;
8368
8368
// %
8369
8369
// %/**
8370
8370
// % * Creates and initializes a dictionary with the single entry given.
8371
- // % *
8371
+ // % *
8372
8372
// % * @param func The enum validation function for the dictionary.
8373
8373
// % * @param rawValue The raw enum value to be placed in the dictionary.
8374
8374
// % * @param key The key under which to store the value.
8375
- // % *
8375
+ // % *
8376
8376
// % * @return A newly instanced dictionary with the key and value in it.
8377
8377
// % **/
8378
8378
// %+ (instancetype)dictionaryWithValidationFunction:(nullable GPBEnumValidationFunc)func
@@ -8381,12 +8381,12 @@ NS_ASSUME_NONNULL_END
8381
8381
// %
8382
8382
// %/**
8383
8383
// % * Creates and initializes a dictionary with the entries given.
8384
- // % *
8384
+ // % *
8385
8385
// % * @param func The enum validation function for the dictionary.
8386
8386
// % * @param values The raw enum values values to be placed in the dictionary.
8387
8387
// % * @param keys The keys under which to store the values.
8388
8388
// % * @param count The number of entries to store in the dictionary.
8389
- // % *
8389
+ // % *
8390
8390
// % * @return A newly instanced dictionary with the keys and values in it.
8391
8391
// % **/
8392
8392
// %+ (instancetype)dictionaryWithValidationFunction:(nullable GPBEnumValidationFunc)func
@@ -8397,42 +8397,42 @@ NS_ASSUME_NONNULL_END
8397
8397
// %/**
8398
8398
// % * Creates and initializes a dictionary with the entries from the given.
8399
8399
// % * dictionary.
8400
- // % *
8400
+ // % *
8401
8401
// % * @param dictionary Dictionary containing the entries to add to the dictionary.
8402
- // % *
8402
+ // % *
8403
8403
// % * @return A newly instanced dictionary with the entries from the given
8404
8404
// % * dictionary in it.
8405
8405
// % **/
8406
8406
// %+ (instancetype)dictionaryWithDictionary:(GPB##KEY_NAME##VALUE_NAME##Dictionary *)dictionary;
8407
8407
// %
8408
8408
// %/**
8409
8409
// % * Creates and initializes a dictionary with the given capacity.
8410
- // % *
8410
+ // % *
8411
8411
// % * @param func The enum validation function for the dictionary.
8412
8412
// % * @param numItems Capacity needed for the dictionary.
8413
- // % *
8413
+ // % *
8414
8414
// % * @return A newly instanced dictionary with the given capacity.
8415
8415
// % **/
8416
8416
// %+ (instancetype)dictionaryWithValidationFunction:(nullable GPBEnumValidationFunc)func
8417
8417
// % capacity:(NSUInteger)numItems;
8418
8418
// %
8419
8419
// %/**
8420
8420
// % * Initializes a dictionary with the given validation function.
8421
- // % *
8421
+ // % *
8422
8422
// % * @param func The enum validation function for the dictionary.
8423
- // % *
8423
+ // % *
8424
8424
// % * @return A newly initialized dictionary.
8425
8425
// % **/
8426
8426
// %- (instancetype)initWithValidationFunction:(nullable GPBEnumValidationFunc)func;
8427
8427
// %
8428
8428
// %/**
8429
8429
// % * Initializes a dictionary with the entries given.
8430
- // % *
8430
+ // % *
8431
8431
// % * @param func The enum validation function for the dictionary.
8432
8432
// % * @param values The raw enum values values to be placed in the dictionary.
8433
8433
// % * @param keys The keys under which to store the values.
8434
8434
// % * @param count The number of entries to store in the dictionary.
8435
- // % *
8435
+ // % *
8436
8436
// % * @return A newly initialized dictionary with the keys and values in it.
8437
8437
// % **/
8438
8438
// %- (instancetype)initWithValidationFunction:(nullable GPBEnumValidationFunc)func
@@ -8443,20 +8443,20 @@ NS_ASSUME_NONNULL_END
8443
8443
// %/**
8444
8444
// % * Initializes a dictionary with the entries from the given.
8445
8445
// % * dictionary.
8446
- // % *
8446
+ // % *
8447
8447
// % * @param dictionary Dictionary containing the entries to add to the dictionary.
8448
- // % *
8448
+ // % *
8449
8449
// % * @return A newly initialized dictionary with the entries from the given
8450
8450
// % * dictionary in it.
8451
8451
// % **/
8452
8452
// %- (instancetype)initWithDictionary:(GPB##KEY_NAME##VALUE_NAME##Dictionary *)dictionary;
8453
8453
// %
8454
8454
// %/**
8455
8455
// % * Initializes a dictionary with the given capacity.
8456
- // % *
8456
+ // % *
8457
8457
// % * @param func The enum validation function for the dictionary.
8458
8458
// % * @param numItems Capacity needed for the dictionary.
8459
- // % *
8459
+ // % *
8460
8460
// % * @return A newly initialized dictionary with the given capacity.
8461
8461
// % **/
8462
8462
// %- (instancetype)initWithValidationFunction:(nullable GPBEnumValidationFunc)func
@@ -8470,23 +8470,23 @@ NS_ASSUME_NONNULL_END
8470
8470
// %
8471
8471
// %/**
8472
8472
// % * Gets the raw enum value for the given key.
8473
- // % *
8473
+ // % *
8474
8474
// % * @note This method bypass the validationFunc to enable the access of values that
8475
8475
// % * were not known at the time the binary was compiled.
8476
- // % *
8476
+ // % *
8477
8477
// % * @param rawValue Pointer into which the value will be set, if found.
8478
8478
// % * @param key Key under which the value is stored, if present.
8479
- // % *
8479
+ // % *
8480
8480
// % * @return YES if the key was found and the value was copied, NO otherwise.
8481
8481
// % **/
8482
8482
// %- (BOOL)getRawValue:(nullable VALUE_TYPE *)rawValue forKey:(KEY_TYPE##KisP$S##KisP)key;
8483
8483
// %
8484
8484
// %/**
8485
8485
// % * Enumerates the keys and values on this dictionary with the given block.
8486
- // % *
8486
+ // % *
8487
8487
// % * @note This method bypass the validationFunc to enable the access of values that
8488
8488
// % * were not known at the time the binary was compiled.
8489
- // % *
8489
+ // % *
8490
8490
// % * @param block The block to enumerate with.
8491
8491
// % * **key**: The key for the current entry.
8492
8492
// % * **rawValue**: The value for the current entry
@@ -8497,10 +8497,10 @@ NS_ASSUME_NONNULL_END
8497
8497
// %
8498
8498
// %/**
8499
8499
// % * Adds the keys and raw enum values from another dictionary.
8500
- // % *
8500
+ // % *
8501
8501
// % * @note This method bypass the validationFunc to enable the setting of values that
8502
8502
// % * were not known at the time the binary was compiled.
8503
- // % *
8503
+ // % *
8504
8504
// % * @param otherDictionary Dictionary containing entries to be added to this
8505
8505
// % * dictionary.
8506
8506
// % **/
@@ -8521,7 +8521,7 @@ NS_ASSUME_NONNULL_END
8521
8521
// %
8522
8522
// %/**
8523
8523
// % * Enumerates the keys and values on this dictionary with the given block.
8524
- // % *
8524
+ // % *
8525
8525
// % * @param block The block to enumerate with.
8526
8526
// % * **key**: ##VNAME_VAR$S## The key for the current entry.
8527
8527
// % * **VNAME_VAR**: The value for the current entry
@@ -8533,15 +8533,15 @@ NS_ASSUME_NONNULL_END
8533
8533
// %PDDM-DEFINE DICTIONARY_MUTABLE_INTERFACE(KEY_NAME, KEY_TYPE, KisP, VALUE_NAME, VALUE_TYPE, VHELPER, VNAME, VNAME_VAR)
8534
8534
// %/**
8535
8535
// % * Sets the value for the given key.
8536
- // % *
8536
+ // % *
8537
8537
// % * @param ##VNAME_VAR The value to set.
8538
8538
// % * @param key ##VNAME_VAR$S## The key under which to store the value.
8539
8539
// % **/
8540
8540
// %- (void)set##VNAME##:(VALUE_TYPE)##VNAME_VAR forKey:(KEY_TYPE##KisP$S##KisP)key;
8541
8541
// %DICTIONARY_EXTRA_MUTABLE_METHODS_##VHELPER(KEY_NAME, KEY_TYPE, KisP, VALUE_NAME, VALUE_TYPE)
8542
8542
// %/**
8543
8543
// % * Removes the entry for the given key.
8544
- // % *
8544
+ // % *
8545
8545
// % * @param aKey Key to be removed from this dictionary.
8546
8546
// % **/
8547
8547
// %- (void)remove##VNAME##ForKey:(KEY_TYPE##KisP$S##KisP)aKey;
@@ -8559,10 +8559,10 @@ NS_ASSUME_NONNULL_END
8559
8559
// %
8560
8560
// %/**
8561
8561
// % * Sets the raw enum value for the given key.
8562
- // % *
8562
+ // % *
8563
8563
// % * @note This method bypass the validationFunc to enable the setting of values that
8564
8564
// % * were not known at the time the binary was compiled.
8565
- // % *
8565
+ // % *
8566
8566
// % * @param rawValue The raw enum value to set.
8567
8567
// % * @param key The key under which to store the raw enum value.
8568
8568
// % **/
0 commit comments