-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathNNSectionsDiff.h
More file actions
43 lines (30 loc) · 1.37 KB
/
Copy pathNNSectionsDiff.h
File metadata and controls
43 lines (30 loc) · 1.37 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
35
36
37
38
39
40
41
42
43
//
// NNSectionsDiff.h
// ArrayDiff
//
// Created by Nick Tymchenko on 03/04/14.
// Copyright (c) 2014 Nick Tymchenko. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NNSectionsDiff : NSObject <NSCopying, NSMutableCopying>
@property (nonatomic, copy, readonly) NSIndexSet *deletedSections;
@property (nonatomic, copy, readonly) NSIndexSet *insertedSections;
@property (nonatomic, copy, readonly) NSSet *deleted;
@property (nonatomic, copy, readonly) NSSet *inserted;
@property (nonatomic, copy, readonly) NSSet *changed;
- (instancetype)initWithDeletedSections:(NSIndexSet *)deletedSections
insertedSections:(NSIndexSet *)insertedSections
deleted:(NSSet *)deleted
inserted:(NSSet *)inserted
changed:(NSSet *)changed;
@end
@interface NNMutableSectionsDiff : NNSectionsDiff
@property (nonatomic, copy, readonly) NSMutableIndexSet *deletedSections;
@property (nonatomic, copy, readonly) NSMutableIndexSet *insertedSections;
@property (nonatomic, copy, readonly) NSMutableSet *deleted;
@property (nonatomic, copy, readonly) NSMutableSet *inserted;
@property (nonatomic, copy, readonly) NSMutableSet *changed;
@end
@interface NNMutableSectionsDiff (Manipulation)
- (void)shiftBySectionDelta:(NSInteger)sectionDelta rowDelta:(NSInteger)rowDelta;
@end