BUThreadSafeDictionary.h 598 B

12345678910111213141516171819
  1. // BUThreadSafeDictionary.h
  2. // Created by Siwant on 2018/1/22.
  3. // Copyright © 2018年 bytedance. All rights reserved.
  4. #import <Foundation/Foundation.h>
  5. @interface BUThreadSafeDictionary: NSMutableDictionary
  6. - (id)objectForKey:(id <NSCopying>)aKey;
  7. - (id)valueForKey:(id)aKey;
  8. - (void)setObject:(id)object forKey:(id <NSCopying>)aKey;
  9. - (void)setValue:(id)value forKey:(NSString *)key;
  10. - (void)removeAllObjects;
  11. - (void)removeObjectForKey:(id <NSCopying>)aKey;
  12. - (NSDictionary *)dictionary;
  13. - (NSArray *)allKeys;
  14. - (NSArray *)allValues;
  15. - (void)removeObjectsForKeys:(NSArray *)keyArray;
  16. @end