*/
package org.mxchange.jcountry.data;
+import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
@Column (name = "country_is_local_prefix_required", nullable = false)
private Boolean countryIsLocalPrefixRequired;
+ @Override
+ public boolean equals (final Object object) {
+ if (object == null) {
+ return false;
+ } else if (getClass() != object.getClass()) {
+ return false;
+ }
+
+ final CountryData other = (CountryData) object;
+
+ return Objects.equals(this.getCountryCode(), other.getCountryCode());
+ }
+
@Override
public Short getCountryPhoneCode () {
return this.countryPhoneCode;
public void setCountryIsLocalPrefixRequired (final Boolean countryIsLocalPrefixRequired) {
this.countryIsLocalPrefixRequired = countryIsLocalPrefixRequired;
}
+
+ @Override
+ public int hashCode () {
+ int hash = 5;
+ hash = 37 * hash + Objects.hashCode(this.getCountryCode());
+ return hash;
+ }
}