if (!Objects.equals(this.getPhoneNumber(), other.getPhoneNumber())) {
return false;
+ } else if (!Objects.equals(this.getPhoneId(), other.getPhoneId())) {
+ return false;
} else if (!Objects.equals(this.getPhoneAreaCode(), other.getPhoneAreaCode())) {
return false;
} else if (!Objects.equals(this.getPhoneCountry(), other.getPhoneCountry())) {
return true;
}
- @Override
- public int hashCode () {
- int hash = 3;
- hash = 23 * hash + Objects.hashCode(this.getPhoneNumber());
- hash = 23 * hash + Objects.hashCode(this.getPhoneAreaCode());
- hash = 23 * hash + Objects.hashCode(this.getPhoneCountry());
- return hash;
- }
-
@Override
public Integer getPhoneAreaCode () {
return this.faxAreaCode;
this.phoneNumber = phoneNumber;
}
+ @Override
+ public int hashCode () {
+ int hash = 3;
+
+ hash = 23 * hash + Objects.hashCode(this.getPhoneId());
+ hash = 23 * hash + Objects.hashCode(this.getPhoneNumber());
+ hash = 23 * hash + Objects.hashCode(this.getPhoneAreaCode());
+ hash = 23 * hash + Objects.hashCode(this.getPhoneCountry());
+
+ return hash;
+ }
+
}
final DialableLandLineNumber other = (DialableLandLineNumber) object;
- if (!Objects.equals(this.getPhoneNumber(), other.getPhoneNumber())) {
+ if (!Objects.equals(this.getPhoneId(), other.getPhoneId())) {
+ return false;
+ } else if (!Objects.equals(this.getPhoneNumber(), other.getPhoneNumber())) {
return false;
} else if (!Objects.equals(this.getPhoneAreaCode(), other.getPhoneAreaCode())) {
return false;
public int hashCode () {
int hash = 7;
+ hash = 47 * hash + Objects.hashCode(this.getPhoneId());
hash = 47 * hash + Objects.hashCode(this.getPhoneNumber());
hash = 47 * hash + Objects.hashCode(this.getPhoneAreaCode());
hash = 47 * hash + Objects.hashCode(this.getPhoneCountry());
final DialableMobileNumber other = (DialableMobileNumber) object;
- if (!Objects.equals(this.getMobileProvider(), other.getMobileProvider())) {
+ if (!Objects.equals(this.getPhoneId(), other.getPhoneId())) {
+ return false;
+ } else if (!Objects.equals(this.getMobileProvider(), other.getMobileProvider())) {
return false;
} else if (!Objects.equals(this.getPhoneNumber(), other.getPhoneNumber())) {
return false;
public int hashCode () {
int hash = 5;
+ hash = 97 * hash + Objects.hashCode(this.getPhoneId());
hash = 97 * hash + Objects.hashCode(this.getMobileProvider());
hash = 97 * hash + Objects.hashCode(this.getPhoneNumber());