FEMMergeableCollection.h 647 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // Created by zen on 12/08/14.
  3. // Copyright (c) 2014 Yalantis. All rights reserved.
  4. //
  5. #import <Foundation/Foundation.h>
  6. @protocol FEMMergeableCollection <NSObject>
  7. @required
  8. - (id)collectionByMergingObjects:(id)object;
  9. @end
  10. @interface NSArray (FEMMergeableCollection) <FEMMergeableCollection>
  11. - (NSArray *)collectionByMergingObjects:(NSArray *)object;
  12. @end
  13. @interface NSSet (FEMMergeableCollection) <FEMMergeableCollection>
  14. - (NSSet *)collectionByMergingObjects:(NSSet *)object;
  15. @end
  16. @interface NSOrderedSet (FEMMergeableCollection) <FEMMergeableCollection>
  17. - (NSOrderedSet *)collectionByMergingObjects:(NSOrderedSet *)object;
  18. @end