import org.mxchange.jcontactsbusiness.model.logo.BusinessLogo;
import org.mxchange.jcontactsbusiness.model.logo.Logo;
import org.mxchange.jcontactsbusiness.model.utils.HeadquarterUtils;
-import org.mxchange.jcoreutils.Comparables;
+import org.mxchange.jcoreutils.comparable.Comparables;
import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber;
import org.mxchange.jphone.model.phonenumbers.fax.FaxNumber;
import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber;
import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
import org.mxchange.jcontactsbusiness.model.opening_time.BusinessOpeningTime;
import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTime;
-import org.mxchange.jcoreutils.Comparables;
-import org.mxchange.jcoreutils.SafeNumberUtils;
+import org.mxchange.jcoreutils.comparable.Comparables;
+import org.mxchange.jcoreutils.number.SafeNumberUtils;
import org.mxchange.jcountry.model.data.Country;
import org.mxchange.jcountry.model.data.CountryData;
import org.mxchange.jcountry.model.utils.CountryUtils;
import org.mxchange.jphone.model.phonenumbers.landline.LandLineNumber;
import org.mxchange.jusercore.model.user.LoginUser;
import org.mxchange.jusercore.model.user.User;
-import org.mxchange.jusercore.model.user.Users;
+import org.mxchange.jusercore.model.utils.UserUtils;
/**
* A POJO for company branch offices
// Init comparisons
final int[] comparators = {
+ // First compare basic data
// First compare basic data
this.getBranchCompany().compareTo(branchOffice.getBranchCompany()),
// ... branch office number
// ... suite number ...
SafeNumberUtils.compare(this.getBranchSuiteNumber(), branchOffice.getBranchSuiteNumber()),
// ... owning user
- Users.compare(this.getBranchUserOwner(), branchOffice.getBranchUserOwner())
+UserUtils.compare(this.getBranchUserOwner(), branchOffice.getBranchUserOwner())
};
// Check all values
import org.mxchange.jcontactsbusiness.model.utils.BasicDataUtils;
import org.mxchange.jcontactsbusiness.model.utils.BranchOfficeUtils;
import org.mxchange.jcontactsbusiness.model.utils.HeadquarterUtils;
-import org.mxchange.jcoreutils.Comparables;
+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.user.Users;
+import org.mxchange.jusercore.model.utils.UserUtils;
/**
* A POJO for company departments
// Init comparisons
final int[] comparators = {
+ // First department's company (BasicData) ...
// First department's company (BasicData) ...
BasicDataUtils.compare(this.getDepartmentCompany(), department.getDepartmentCompany()),
// ... then headquarters
// ... lead contact
ContactUtils.compare(this.getDepartmentLead(), department.getDepartmentLead()),
// ... user owner
- Users.compare(this.getDepartmentUserOwner(), department.getDepartmentUserOwner())
+UserUtils.compare(this.getDepartmentUserOwner(), department.getDepartmentUserOwner())
};
// Check all values
import org.mxchange.jcontactsbusiness.model.utils.BranchOfficeUtils;
import org.mxchange.jcontactsbusiness.model.utils.DepartmentUtils;
import org.mxchange.jcontactsbusiness.model.utils.HeadquarterUtils;
-import org.mxchange.jcoreutils.Comparables;
+import org.mxchange.jcoreutils.comparable.Comparables;
import org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber;
import org.mxchange.jphone.model.phonenumbers.mobile.MobileNumber;
import org.mxchange.jusercore.model.user.LoginUser;
import org.mxchange.jcontacts.model.contact.UserContact;
import org.mxchange.jcontactsbusiness.model.opening_time.BusinessOpeningTime;
import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTime;
-import org.mxchange.jcoreutils.Comparables;
-import org.mxchange.jcoreutils.SafeNumberUtils;
+import org.mxchange.jcoreutils.comparable.Comparables;
+import org.mxchange.jcoreutils.number.SafeNumberUtils;
import org.mxchange.jcountry.model.data.Country;
import org.mxchange.jcountry.model.data.CountryData;
import org.mxchange.jcountry.model.utils.CountryUtils;
import javax.persistence.Transient;
import org.apache.commons.lang3.StringUtils;
import org.mxchange.jcontactsbusiness.model.jobposition.status.JobPositionStatus;
-import org.mxchange.jcoreutils.Comparables;
+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.user.Users;
+import org.mxchange.jusercore.model.utils.UserUtils;
/**
* A POJO for job positions
// Init comparisons
final int[] comparators = {
// First added by which user ...
- Users.compare(this.getJobPositionAddedUser(), jobPosition.getJobPositionAddedUser()),
+ UserUtils.compare(this.getJobPositionAddedUser(), jobPosition.getJobPositionAddedUser()),
// ... next name
StringUtils.compareIgnoreCase(this.getJobPositionName(), jobPosition.getJobPositionName())
};
import javax.persistence.TemporalType;
import javax.persistence.Transient;
import org.apache.commons.lang3.StringUtils;
-import org.mxchange.jcoreutils.Comparables;
+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.user.Users;
+import org.mxchange.jusercore.model.utils.UserUtils;
/**
* A POJO for company logos
// Init comparisons
final int[] comparators = {
+ // First file name ...
// First file name ...
StringUtils.compareIgnoreCase(this.getLogoFileName(), logo.getLogoFileName()),
// ... then uploader instance
- Users.compare(this.getLogoUploaderUser(), logo.getLogoUploaderUser())
+UserUtils.compare(this.getLogoUploaderUser(), logo.getLogoUploaderUser())
};
// Check all values
import javax.persistence.TemporalType;
import javax.persistence.Transient;
import org.mxchange.jcoreee.dates.DayOfTheWeek;
-import org.mxchange.jcoreutils.Comparables;
+import org.mxchange.jcoreutils.comparable.Comparables;
/**
* A POJO for business opening hours