import javax.persistence.Transient;
import org.apache.commons.lang3.StringUtils;
import org.mxchange.jcoreutils.comparable.ComparableUtils;
+import org.mxchange.jcoreutils.number.SafeNumberUtils;
/**
* A POJO for country data
// First check country code, clear indication ...
StringUtils.compare(this.getCountryCode(), country.getCountryCode()),
// ... and phone code, too
- this.getCountryPhoneCode().compareTo(country.getCountryPhoneCode()),
+ SafeNumberUtils.compare(this.getCountryPhoneCode(), country.getCountryPhoneCode()),
// ... then i18n key
StringUtils.compare(this.getCountryI18nKey(), country.getCountryI18nKey()),
// ... abroad dial prefix