2019-12-19 17:32:49 +00:00
|
|
|
/*
|
2023-04-06 09:44:16 +00:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2016-09-07 22:37:59 +00:00
|
|
|
*
|
2018-05-01 21:33:50 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2016-09-07 22:37:59 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
2021-09-01 02:22:18 +00:00
|
|
|
#if !__has_include(<IGListDiffKit/IGListDiffKit.h>)
|
|
|
|
|
#import "IGListIndexSetResult.h"
|
|
|
|
|
#else
|
2019-10-31 15:17:38 +00:00
|
|
|
#import <IGListDiffKit/IGListIndexSetResult.h>
|
2021-09-01 02:22:18 +00:00
|
|
|
#endif
|
2016-09-07 22:37:59 +00:00
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
@interface IGListIndexSetResult()
|
|
|
|
|
|
|
|
|
|
- (instancetype)initWithInserts:(NSIndexSet *)inserts
|
|
|
|
|
deletes:(NSIndexSet *)deletes
|
|
|
|
|
updates:(NSIndexSet *)updates
|
|
|
|
|
moves:(NSArray<IGListMoveIndex *> *)moves
|
|
|
|
|
oldIndexMap:(NSMapTable<id<NSObject>, NSNumber *> *)oldIndexMap
|
|
|
|
|
newIndexMap:(NSMapTable<id<NSObject>, NSNumber *> *)newIndexMap;
|
|
|
|
|
|
2017-07-12 19:40:16 +00:00
|
|
|
@property (nonatomic, assign, readonly) NSInteger changeCount;
|
|
|
|
|
|
2016-09-07 22:37:59 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|