developer
2023-05-20 e12c7b4c22df631ebdcd16b2f98fbef8f738f92f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * NSMutableDictionary+WVUtility.h
 * 
 * Created by WindVane.
 * Copyright (c) 2017年 阿里巴巴-淘宝技术部. All rights reserved.
 */
 
#import <Foundation/Foundation.h>
 
/**
 * 提供 NSMutableDictionary 类的扩展方法。
 */
@interface NSMutableDictionary (WVUtility)
 
/**
 * 从指定字典中复制指定键的值。
 */
- (void)wvCopyValueFrom:(NSDictionary *)dict withKey:(id<NSCopying>)key;
 
/**
 * 将指定字典中当前字典中不包含的键,添加到当前字典中。
 */
- (void)wvAddNewEntriesFromDictionary:(NSDictionary *)otherDictionary;
 
/**
 * 移除指定指定键的对象。
 */
- (void)wvRemoveObjectForKey:(id<NSCopying>)key;
 
/**
 * 为字典设置指定的键值对,已对 nil 进行检查。
 */
- (void)wvSetNullable:(id)value forKey:(id<NSCopying>)key;
 
@end