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

Public Member Functions

int compare (DescriptorValue o1, DescriptorValue o2)
 

Detailed Description

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

Definition at line 30 of file DescriptorValueComparator.java.

Member Function Documentation

◆ compare()

int org.turro.dossier.dossier.DescriptorValueComparator.compare ( DescriptorValue  o1,
DescriptorValue  o2 
)

Definition at line 33 of file DescriptorValueComparator.java.

33  {
34  DescriptorDefinition dd1 = o1.getDescriptorDefinition(),
35  dd2 = o2.getDescriptorDefinition();
36  return Comparison.ascendant()
37  .nulls(dd1, dd2)
38  .compare(dd1.getOrderNumber(), dd2.getOrderNumber())
39  .compare(dd1.getTitle(), dd2.getTitle())
40  .compare(o1.getId(), o2.getId())
41  .get();
42  }
Here is the call graph for this function:

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