]> git.mxchange.org Git - jbonuscard-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 6 Oct 2022 14:10:41 +0000 (16:10 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 6 Oct 2022 14:10:41 +0000 (16:10 +0200)
- updated package/class references
- used BasicDataUtils.compare() again

src/org/mxchange/jbonuscard/model/bonus_card/RoyalityCard.java

index 9979610afdd6f055993b464b8400e60424452970..ada09effcecd6af053ef55c747b7ed2946ba4085 100644 (file)
@@ -34,11 +34,11 @@ import javax.persistence.TemporalType;
 import javax.persistence.Transient;
 import org.apache.commons.lang3.StringUtils;
 import org.mxchange.jcontacts.model.contact.Contact;
-import org.mxchange.jcontacts.model.contact.Contacts;
 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.BasicDataUtils;
 import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
+import org.mxchange.jcontactsbusiness.model.utils.BasicDataUtils;
 import org.mxchange.jcoreutils.Comparables;
 import org.mxchange.jcustomercore.model.customer.ContactCustomer;
 import org.mxchange.jcustomercore.model.customer.Customer;
@@ -187,9 +187,9 @@ public class RoyalityCard implements BonusCard {
                        // ... customer data
                        Customers.compare(this.getBonusCardCustomer(), bonusCard.getBonusCardCustomer()),
                        // ... contact data (card holder)
-                       Contacts.compare(this.getBonusCardContact(), bonusCard.getBonusCardContact()),
+                       ContactUtils.compare(this.getBonusCardContact(), bonusCard.getBonusCardContact()),
                        // ... issuing company data
-                       this.getBonusCardIssuer().compareTo(bonusCard.getBonusCardIssuer()),
+                       BasicDataUtils.compare(this.getBonusCardIssuer(), bonusCard.getBonusCardIssuer()),
                        // ... partner company data
                        BasicDataUtils.compare(this.getBonusCardPartner(), bonusCard.getBonusCardPartner())
                };