#import /** * An efficient collection/key tuple class. * * Combines collection & key into a single object, * and provides the proper methods to use the object in various classes (such as NSDictionary, NSSet, etc). **/ @interface YapCollectionKey : NSObject - (id)initWithCollection:(NSString *)collection key:(NSString *)key; @property (nonatomic, strong, readonly) NSString *collection; @property (nonatomic, strong, readonly) NSString *key; - (BOOL)isEqualToCollectionKey:(YapCollectionKey *)collectionKey; // These methods are overriden and optimized: - (BOOL)isEqual:(id)anObject; - (NSUInteger)hash; @end