final Country other = (Country) object;
- if (!Objects.equals(this.getCountryCode(), other.getCountryCode())) {
+ if (!Objects.equals(this.getCountryId(), other.getCountryId())) {
return false;
- } else if (!Objects.equals(this.getCountryI18nKey(), other.getCountryI18nKey())) {
+ } else if (!Objects.equals(this.getCountryCode(), other.getCountryCode())) {
return false;
- } else if (!Objects.equals(this.getCountryId(), other.getCountryId())) {
+ } else if (!Objects.equals(this.getCountryI18nKey(), other.getCountryI18nKey())) {
return false;
}
return true;
}
- @Override
- public int hashCode () {
- int hash = 7;
- hash = 41 * hash + Objects.hashCode(this.getCountryCode());
- hash = 41 * hash + Objects.hashCode(this.getCountryI18nKey());
- hash = 41 * hash + Objects.hashCode(this.getCountryId());
- return hash;
- }
-
@Override
public String getCountryAbroadDialPrefix () {
return this.countryAbroadDialPrefix;
this.countryPhoneCode = countryPhoneCode;
}
+ @Override
+ public int hashCode () {
+ int hash = 7;
+
+ hash = 41 * hash + Objects.hashCode(this.getCountryId());
+ hash = 41 * hash + Objects.hashCode(this.getCountryCode());
+ hash = 41 * hash + Objects.hashCode(this.getCountryI18nKey());
+
+ return hash;
+ }
+
}