import org.mxchange.jcoreutils.comparable.Comparables;
import org.mxchange.jusercore.model.user.LoginUser;
import org.mxchange.jusercore.model.user.User;
+import org.mxchange.jusercore.model.utils.UserUtils;
/**
* A POJO for user address books
// ... status
this.getAddressbookStatus().compareTo(addressbook.getAddressbookStatus()),
// .. then user
- this.getAddressbookUser().compareTo(addressbook.getAddressbookUser())
+ UserUtils.compare(this.getAddressbookUser(), addressbook.getAddressbookUser())
};
// Check all values
import org.mxchange.jaddressbook.model.addressbook.UserAddressbook;
import org.mxchange.jcontacts.model.contact.Contact;
import org.mxchange.jcontacts.model.contact.UserContact;
+import org.mxchange.jcontacts.model.utils.ContactUtils;
import org.mxchange.jcontactsbusiness.model.basicdata.BasicData;
import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
+import org.mxchange.jcontactsbusiness.model.utils.BasicDataUtils;
import org.mxchange.jcoreutils.comparable.Comparables;
/**
// First compare address books
this.getEntryAddressbook().compareTo(addressbookEntry.getEntryAddressbook()),
// ... then business address
- this.getAddressbookEntryBusinessBasicData().compareTo(addressbookEntry.getAddressbookEntryBusinessBasicData()),
+ BasicDataUtils.compare(this.getAddressbookEntryBusinessBasicData(), addressbookEntry.getAddressbookEntryBusinessBasicData()),
// ... then private contact
- this.getAddressbookEntryPrivateContact().compareTo(addressbookEntry.getAddressbookEntryPrivateContact())
+ ContactUtils.compare(this.getAddressbookEntryPrivateContact(), addressbookEntry.getAddressbookEntryPrivateContact())
};
// Check all vaules