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

Public Member Functions

int compare (OrderItem o1, OrderItem o2)
 

Detailed Description

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

Definition at line 30 of file OrderItemComparator.java.

Member Function Documentation

◆ compare()

int org.turro.erp.purchase.OrderItemComparator.compare ( OrderItem  o1,
OrderItem  o2 
)

Definition at line 33 of file OrderItemComparator.java.

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

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