1 2 @class HashTable; 3 4 /** 5 * HashTable entry. 6 */ 7 8 @interface HTEntry : NSObject { 9 HTEntry *next; 10 NSInteger hash; 11 NSString *key; 12 id value; 13 } 14 15 @property(nonatomic, retain) HTEntry *next; 16 @property(assign) NSInteger hash; 17 @property(nonatomic, retain) NSString *key; 18 @property(nonatomic, retain) id value; 19 20 + (HTEntry *)newEntry:(NSInteger)h key:(NSString *)k value:(id)v next:(HTEntry *) n; 21 - (id) init:(NSInteger)h key:(NSString *)k value:(id)v next:(HTEntry *)n; 22 - (id) copyWithZone:(NSZone *)zone; 23 - (void) setValue:(id)newValue; 24 - (BOOL) isEqualTo:(id)o; 25 - (NSInteger) hash; 26 - (NSString *) description; 27 @end 28 29 /** 30 * LinkedMap entry. 31 */ 32 33 @interface LMNode : NSObject { 34 LMNode *next; 35 LMNode *prev; 36 id item; 37 } 38 39 @property(nonatomic, retain) LMNode *next; 40 @property(nonatomic, retain) LMNode *prev; 41 @property(nonatomic, retain) id item; 42 43 + (LMNode *) newNode:(LMNode *)aPrev element:(id)anElement next:(LMNode *)aNext; 44 - (id) init:(LMNode *)aPrev element:(id)anElement next:(LMNode *)aNext; 45 @end 46 47