public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof Contact)) {
return false;
}
Contact other = (Contact) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.businessPartnerId == null && other.getBusinessPartnerId() == null) ||
(this.businessPartnerId != null &&
this.businessPartnerId.equals(other.getBusinessPartnerId()))) &&
((this.clientId == null && other.getClientId() == null) ||
(this.clientId != null &&
this.clientId.equals(other.getClientId()))) &&
((this.email == null && other.getEmail() == null) ||
(this.email != null &&
this.email.equals(other.getEmail()))) &&
((this.fax == null && other.getFax() == null) ||
(this.fax != null &&
this.fax.equals(other.getFax()))) &&
((this.firstName == null && other.getFirstName() == null) ||
(this.firstName != null &&
this.firstName.equals(other.getFirstName()))) &&
((this.id == null && other.getId() == null) ||
(this.id != null &&
this.id.equals(other.getId()))) &&
((this.lastName == null && other.getLastName() == null) ||
(this.lastName != null &&
this.lastName.equals(other.getLastName()))) &&
((this.phone == null && other.getPhone() == null) ||
(this.phone != null &&
this.phone.equals(other.getPhone()))) &&
((this.phone2 == null && other.getPhone2() == null) ||
(this.phone2 != null &&
this.phone2.equals(other.getPhone2())));
__equalsCalc = null;
return _equals;
}