BrightSide Workbench Full Report + Source Code
org.turro.dossier.dossier.DescriptorComparator Class Reference
Inheritance diagram for org.turro.dossier.dossier.DescriptorComparator:
Collaboration diagram for org.turro.dossier.dossier.DescriptorComparator:

Public Member Functions

int compare (DescriptorDefinition o1, DescriptorDefinition o2)
 

Detailed Description

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

Definition at line 29 of file DescriptorComparator.java.

Member Function Documentation

◆ compare()

int org.turro.dossier.dossier.DescriptorComparator.compare ( DescriptorDefinition  o1,
DescriptorDefinition  o2 
)

Definition at line 32 of file DescriptorComparator.java.

32  {
33  int result = CompareUtil.compare(o1.getOrderNumber(), o2.getOrderNumber());
34  if(result == 0) {
35  result = CompareUtil.compare(o1.getTitle(), o2.getTitle());
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: