final Contact other = (Contact) object;
- if (!Objects.equals(this.getContactCity(), other.getContactCity())) {
+ if (!Objects.equals(this.getContactId(), other.getContactId())) {
+ return false;
+ } else if (!Objects.equals(this.getContactCity(), other.getContactCity())) {
return false;
} else if (!Objects.equals(this.getContactEmailAddress(), other.getContactEmailAddress())) {
return false;
return false;
} else if (!Objects.equals(this.getContactHouseNumberExtension(), other.getContactHouseNumberExtension())) {
return false;
- } else if (!Objects.equals(this.getContactId(), other.getContactId())) {
- return false;
}
return true;