TestsTested | ✓ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | May 2015 |
Maintained by Tony Li.
Objectify contains following features:
isEqual:
and hash
methods with one line of codedescription
method with one line of code
@implementation Person
equality_properties(Person, firstName, lastName);
@end
The 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.
Override description
with one line of code:
@implementation Person
description_properties(firstName, lastName);
@end
The description_properties
macro will generate description
method
which will return formatted string:
<ClassName: PointerAddress, prop0=value0, prop1=value1 ... >
Objectify is available under the MIT license. See the LICENSE file for more info.