RQKeyedSubscript.h 559 B

12345678910111213141516171819202122
  1. //
  2. // RQKeyedSubscript.h
  3. // RQCommon
  4. //
  5. // Created by 张嵘 on 2018/11/16.
  6. // Copyright © 2018 张嵘. All rights reserved.
  7. // 参数
  8. #import <Foundation/Foundation.h>
  9. @interface RQKeyedSubscript : NSObject
  10. /// 类方法
  11. + (instancetype) subscript;
  12. /// 拼接一个字典
  13. + (instancetype)subscriptWithDictionary:(NSDictionary *)dict;
  14. - (instancetype)initWithDictionary:(NSDictionary *)dict;
  15. - (id)objectForKeyedSubscript:(id)key;
  16. - (void)setObject:(id)obj forKeyedSubscript:(id <NSCopying>)key;
  17. /// 转换为字典
  18. - (NSDictionary *)dictionary;
  19. @end