BrightSide Workbench Full Report + Source Code
org.turro.contacts.hhrr.HumanResourcesComparator Class Reference
Inheritance diagram for org.turro.contacts.hhrr.HumanResourcesComparator:
Collaboration diagram for org.turro.contacts.hhrr.HumanResourcesComparator:

Public Member Functions

int compare (BusinessRelation o1, BusinessRelation o2)
 

Detailed Description

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

Definition at line 29 of file HumanResourcesComparator.java.

Member Function Documentation

◆ compare()

int org.turro.contacts.hhrr.HumanResourcesComparator.compare ( BusinessRelation  o1,
BusinessRelation  o2 
)

Definition at line 32 of file HumanResourcesComparator.java.

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

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