Revision 383639333163 () - Diff

Link to this snippet: https://friendpaste.com/1Y9hBLn3819YIJDLcZKNbI
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#import <Foundation/Foundation.h>

@protocol IntervalDictionaryKey <NSObject>
- (BOOL)intervalContains:(id)object;
@end

@interface IntervalDictionary : NSObject {
NSMutableArray *keys, *values;
}

- (void)addInterval:(id<IntervalDictionaryKey>)interval withObject:(id)object;
- (void)setObject:(id)object forIntervalOf:(id)intervalObject;
- (id)objectForIntervalOf:(id)object;
@end