Compares two custom properties for equality. The method returns
true
if all attributes of the two custom properties are
equal.
final CustomProperty c = (CustomProperty) o;
final String name1 = c.getName();
final String name2 = this.getName();
boolean equalNames = true;
if (name1 == null)
equalNames = name2 == null;
else
equalNames = name1.equals(name2);
return equalNames && c.getID() == this.getID()
&& c.getType() == this.getType()
&& c.getValue().equals(this.getValue());