BrightSide Workbench Full Report + Source Code
org.turro.entities.portfolio.DocumentByEntityComparator Class Reference
Inheritance diagram for org.turro.entities.portfolio.DocumentByEntityComparator:
Collaboration diagram for org.turro.entities.portfolio.DocumentByEntityComparator:

Public Member Functions

int compare (Document o1, Document o2)
 

Detailed Description

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

Definition at line 29 of file DocumentByEntityComparator.java.

Member Function Documentation

◆ compare()

int org.turro.entities.portfolio.DocumentByEntityComparator.compare ( Document  o1,
Document  o2 
)

Definition at line 32 of file DocumentByEntityComparator.java.

32  {
33  int result = CompareUtil.compare(o1.getDocumentDate(), o2.getDocumentDate());
34  if(result == 0) {
35  result = CompareUtil.compare(o1.getReceiptDate(), o2.getReceiptDate());
36  }
37  if(result == 0) {
38  result = CompareUtil.compare(o1.getId(), o2.getId());
39  }
40  return result;
41  }
Here is the call graph for this function:

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