return false;
} else if (!Objects.equals(this.getCompanyComments(), other.getCompanyComments())) {
return false;
- } else if (!Objects.equals(this.getCompanyContactEmployee(), other.getCompanyContactEmployee())) {
- return false;
} else if (!Objects.equals(this.getCompanyEmailAddress(), other.getCompanyEmailAddress())) {
return false;
} else if (!Objects.equals(this.getCompanyFaxNumber(), other.getCompanyFaxNumber())) {
return false;
- } else if (!Objects.equals(this.getCompanyFounder(), other.getCompanyFounder())) {
- return false;
- } else if (!Objects.equals(this.getCompanyHeadquarterData(), other.getCompanyHeadquarterData())) {
- return false;
} else if (!Objects.equals(this.getCompanyLandLineNumber(), other.getCompanyLandLineNumber())) {
return false;
} else if (!Objects.equals(this.getCompanyLogo(), other.getCompanyLogo())) {
hash = 37 * hash + Objects.hashCode(this.getBasicDataId());
hash = 37 * hash + Objects.hashCode(this.getCompanyComments());
- hash = 37 * hash + Objects.hashCode(this.getCompanyContactEmployee());
hash = 37 * hash + Objects.hashCode(this.getCompanyEmailAddress());
hash = 37 * hash + Objects.hashCode(this.getCompanyFaxNumber());
- hash = 37 * hash + Objects.hashCode(this.getCompanyFounder());
- hash = 37 * hash + Objects.hashCode(this.getCompanyHeadquarterData());
hash = 37 * hash + Objects.hashCode(this.getCompanyLandLineNumber());
hash = 37 * hash + Objects.hashCode(this.getCompanyLogo());
hash = 37 * hash + Objects.hashCode(this.getCompanyName());
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;
/**
* A POJO for company branch offices
this.getBranchCompany().compareTo(branchOffice.getBranchCompany()),
// ... branch office number
SafeNumberUtils.compare(this.getBranchNumber(), branchOffice.getBranchNumber()),
+ // ... owner employee
+ Employees.compare(this.getBranchOwnerEmployee(), branchOffice.getBranchOwnerEmployee()),
// ... contact person
Employees.compare(this.getBranchContactEmployee(), branchOffice.getBranchContactEmployee()),
// ... then country
// ... store ...
SafeNumberUtils.compare(this.getBranchStore(), branchOffice.getBranchStore()),
// ... suite number ...
- SafeNumberUtils.compare(this.getBranchSuiteNumber(), branchOffice.getBranchSuiteNumber())
+ SafeNumberUtils.compare(this.getBranchSuiteNumber(), branchOffice.getBranchSuiteNumber()),
+ // ... owning user
+ Users.compare(this.getBranchUserOwner(), branchOffice.getBranchUserOwner())
};
// Check all values
return false;
} else if (!Objects.equals(this.getBranchCompany(), branchOffice.getBranchCompany())) {
return false;
- } else if (!Objects.equals(this.getBranchContactEmployee(), branchOffice.getBranchContactEmployee())) {
- return false;
} else if (!Objects.equals(this.getBranchCountry(), branchOffice.getBranchCountry())) {
return false;
} else if (!Objects.equals(this.getBranchEmailAddress(), branchOffice.getBranchEmailAddress())) {
return false;
} else if (!Objects.equals(this.getBranchNumber(), branchOffice.getBranchNumber())) {
return false;
- } else if (!Objects.equals(this.getBranchOpeningTimes(), branchOffice.getBranchOpeningTimes())) {
- return false;
- } else if (!Objects.equals(this.getBranchOwnerEmployee(), branchOffice.getBranchOwnerEmployee())) {
- return false;
} else if (!Objects.equals(this.getBranchStore(), branchOffice.getBranchStore())) {
return false;
} else if (!Objects.equals(this.getBranchStreet(), branchOffice.getBranchStreet())) {
hash = 53 * hash + Objects.hashCode(this.getBranchCity());
hash = 53 * hash + Objects.hashCode(this.getBranchCompany());
- hash = 53 * hash + Objects.hashCode(this.getBranchContactEmployee());
hash = 53 * hash + Objects.hashCode(this.getBranchCountry());
hash = 53 * hash + Objects.hashCode(this.getBranchEmailAddress());
hash = 53 * hash + Objects.hashCode(this.getBranchFaxNumber());
hash = 53 * hash + Objects.hashCode(this.getBranchLandLineNumber());
hash = 53 * hash + Objects.hashCode(this.getBranchLastHouseNumber());
hash = 53 * hash + Objects.hashCode(this.getBranchNumber());
- hash = 53 * hash + Objects.hashCode(this.getBranchOpeningTimes());
- hash = 53 * hash + Objects.hashCode(this.getBranchOwnerEmployee());
hash = 53 * hash + Objects.hashCode(this.getBranchStore());
hash = 53 * hash + Objects.hashCode(this.getBranchStreet());
hash = 53 * hash + Objects.hashCode(this.getBranchSuiteNumber());
return false;
} else if (!Objects.equals(this.getHeadquarterLastHouseNumber(), headquarter.getHeadquarterLastHouseNumber())) {
return false;
- } else if (!Objects.equals(this.getHeadquarterOpeningTimes(), headquarter.getHeadquarterOpeningTimes())) {
- return false;
} else if (!Objects.equals(this.getHeadquarterStore(), headquarter.getHeadquarterStore())) {
return false;
} else if (!Objects.equals(this.getHeadquarterStreet(), headquarter.getHeadquarterStreet())) {
hash = 47 * hash + Objects.hashCode(this.getHeadquarterId());
hash = 47 * hash + Objects.hashCode(this.getHeadquarterLandLineNumber());
hash = 47 * hash + Objects.hashCode(this.getHeadquarterLastHouseNumber());
- hash = 47 * hash + Objects.hashCode(this.getHeadquarterOpeningTimes());
hash = 47 * hash + Objects.hashCode(this.getHeadquarterStore());
hash = 47 * hash + Objects.hashCode(this.getHeadquarterStreet());
hash = 47 * hash + Objects.hashCode(this.getHeadquarterSuiteNumber());