Apache Commons ToStringBuilder 的基础之上,用于确定对象相等性的实用工具。
- (NSString *)description {
return [[[[[[BRYDescriptionBuilder builderWithObject:object]
appendObject:self.name withName:@"name"]
appendBool:self.isHidden withName:@"isHidden"]
appendFloat:self.width withName:@"width"]
appendInteger:self.index withName:@"index"]
description];
}
MIT 许可证下可用: http://bryan.mit-license.org