Utility for determining object equality, based on Apache Commons EqualsBuilder.
- (BOOL)isEqual:(id)object {
return [[[[[BRYEqualsBuilder builderComparingObject:self withObject:object]
appendObject:self.name otherObject:other.name]
appendBool:self.isHidden otherBool:other.isHidden]
appendFloat:self.width otherFloat:other.width]
appendInteger:self.index otherInteger:other.index].isEqual;
}
Available for use under the MIT license: http://bryan.mit-license.org