if (other == null || !other.getClass().equals(getClass())) {
return false;
}
PropertyInfo o = (PropertyInfo) other;
EqualsBuilder equals = new EqualsBuilder();
equals.append(getName(), o.getName());
equals.append(getDeclaringType(), o.getDeclaringType());
equals.append(getType(), o.getType());
equals.append(getReadMethod(), o.getReadMethod());
equals.append(getWriteMethod(), o.getWriteMethod());
return equals.isEquals();
}