import org.apache.commons.lang3.StringUtils;
import org.mxchange.jcontacts.model.contact.title.PersonalTitle;
import org.mxchange.jcoreutils.Comparables;
-import org.mxchange.jcoreutils.CoreNumberUtils;
+import org.mxchange.jcoreutils.SafeNumberUtils;
import org.mxchange.jcountry.model.data.Country;
import org.mxchange.jcountry.model.data.CountryData;
import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber;
// First check country
this.getContactCountry().compareTo(contact.getContactCountry()),
// ... then ZIP code
- CoreNumberUtils.compare(this.getContactZipCode(), contact.getContactZipCode()),
+ SafeNumberUtils.compare(this.getContactZipCode(), contact.getContactZipCode()),
// ... and city
this.getContactCity().compareTo(contact.getContactCity()),
// ... street name
StringUtils.compareIgnoreCase(this.getContactStreet(), contact.getContactStreet()),
// ... house number
- CoreNumberUtils.compare(this.getContactHouseNumber(), contact.getContactHouseNumber()),
+ SafeNumberUtils.compare(this.getContactHouseNumber(), contact.getContactHouseNumber()),
// ... extension
StringUtils.compareIgnoreCase(this.getContactHouseNumberExtension(), contact.getContactHouseNumberExtension()),
// ... now it is sure that address is different/same, continue with personal title