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

Public Member Functions

int compare (OrderReference o1, OrderReference o2)
 

Detailed Description

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

Definition at line 27 of file OrderReferenceComparator.java.

Member Function Documentation

◆ compare()

int org.turro.erp.entity.OrderReferenceComparator.compare ( OrderReference  o1,
OrderReference  o2 
)

Definition at line 30 of file OrderReferenceComparator.java.

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

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