CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Apr 2015 |
Maintained by Tony Li.
Override isEqual: and hash methods with one line of code:
@interface Person : NSObject
@property (nonatomic, strong) NSString *firstName;
@property (nonatomic, strong) NSString *lastName;
@end
@implementation Person
equality_properties(Person, firstName, lastName);
@endThe equality_properties macro will generate isEqual: and hash methods,
and also add an isEqualToXxx: (isEqualToPerson: in this case) method.
The hash algorithm is from Mike Ash's blog post.
ObjectEquality is available under the MIT license. See the LICENSE file for more info.