forked from mrnuku/util
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathNSArray+Union.h
More file actions
34 lines (28 loc) · 1.43 KB
/
NSArray+Union.h
File metadata and controls
34 lines (28 loc) · 1.43 KB
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
//
// NSArray+Union.h
// FinTech
//
// Created by Bálint Róbert on 07/08/15.
// Copyright (c) 2015 IncepTech Ltd. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSArray (Union)
/** returns the two container union or intersection of objects
* @param dictionary the reference container for the receiver array what used for the comparsion
* @param useObjectsFromDictionary determines which container provides the objects in the resulting array
* @return NSArray with the resulting objects
*/
- (NSArray *)arrayOfUnionObjectsWithDictionary:(NSDictionary *)dictionary useObjectsFromDictionary:(BOOL)dictionaryObjects;
/** returns the two container union or intersection of objects
* @param array the reference container for the receiver array what used for the comparsion
* @param useObjectsFromSecondaryArray determines which container provides the objects in the resulting array
* @return NSArray with the resulting objects
*/
- (NSArray *)arrayOfUnionObjectsWithArray:(NSArray *)array useObjectsFromSecondaryArray:(BOOL)secondaryArrayObjects;
/** returns the two container substraction of objects
* @param array the reference container for the receiver array what used for the comparsion
* @param useObjectsFromSecondaryArray determines which container provides the objects in the resulting array
* @return NSArray with the resulting objects
*/
- (NSArray *)arrayOfSubstractedObjectsWithArray:(NSArray *)array;
@end