- ops, wrong indenting
- also closed internal TODO as above getClass() check is enough
// Init comparisons
final int[] comparators = {
- // First compare basic data
// First compare basic data
this.getBranchCompany().compareTo(branchOffice.getBranchCompany()),
// ... branch office number
return false;
}
- // @todo Maybe a bit unsafe cast?
+ // Cast to BranchOffice interface
final BranchOffice branchOffice = (BranchOffice) object;
if (!Objects.equals(this.getBranchCity(), branchOffice.getBranchCity())) {
// ... lead contact
ContactUtils.compare(this.getDepartmentLead(), department.getDepartmentLead()),
// ... user owner
-UserUtils.compare(this.getDepartmentUserOwner(), department.getDepartmentUserOwner())
+ UserUtils.compare(this.getDepartmentUserOwner(), department.getDepartmentUserOwner())
};
// Check all values