209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
|
if ((object = va_arg(arguments, id)) == nil)
@throw [OFInvalidArgumentException
exceptionWithClass: [self class]
selector: _cmd];
count = 1;
for (; va_arg(argumentsCopy, id) != nil; count++);
count >>= 1;
_mapTable = [[OFMapTable alloc]
initWithKeyFunctions: keyFunctions
valueFunctions: valueFunctions
capacity: count];
[_mapTable setValue: object
|
>
>
>
>
>
>
|
|
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
|
if ((object = va_arg(arguments, id)) == nil)
@throw [OFInvalidArgumentException
exceptionWithClass: [self class]
selector: _cmd];
count = 1;
for (; va_arg(argumentsCopy, id) != nil; count++);
if (count % 2 != 0)
@throw [OFInvalidArgumentException
exceptionWithClass: [self class]
selector: _cmd];
count /= 2;
_mapTable = [[OFMapTable alloc]
initWithKeyFunctions: keyFunctions
valueFunctions: valueFunctions
capacity: count];
[_mapTable setValue: object
|