BrightSide Workbench Full Report + Source Code
org.turro.erp.entity.TaskComparator Class Reference
Inheritance diagram for org.turro.erp.entity.TaskComparator:
Collaboration diagram for org.turro.erp.entity.TaskComparator:

Public Member Functions

int compare (Task o1, Task o2)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file TaskComparator.java.

Member Function Documentation

◆ compare()

int org.turro.erp.entity.TaskComparator.compare ( Task  o1,
Task  o2 
)

Definition at line 30 of file TaskComparator.java.

30  {
31  int result = CompareUtil.compare(o1.getStartDate(), o2.getStartDate());
32  if(result == 0) {
33  result = CompareUtil.compare(o1.getEndDate(), o2.getEndDate());
34  }
35  if(result == 0) {
36  result = CompareUtil.compare(o1.getDelivery(), o2.getDelivery());
37  }
38  if(result == 0) {
39  result = CompareUtil.compare(o1.getDepartmentId(), o2.getDepartmentId());
40  }
41  if(result == 0) {
42  result = CompareUtil.compare(o1.getName(), o2.getName());
43  }
44  if(result == 0) {
45  result = CompareUtil.compare(o1.getId(), o2.getId());
46  }
47  return result;
48  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: