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

Public Member Functions

int compare (FieldValue o1, FieldValue o2)
 

Detailed Description

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

Definition at line 28 of file FieldValueComparator.java.

Member Function Documentation

◆ compare()

int org.turro.dossier.dossier.FieldValueComparator.compare ( FieldValue  o1,
FieldValue  o2 
)

Definition at line 31 of file FieldValueComparator.java.

31  {
32  int c = CompareUtil.compare(o1.getFieldDef().getCategory().getDescription(), o2.getFieldDef().getCategory().getDescription());
33  if(c == 0) {
34  c = CompareUtil.compare(o1.getFieldDef().getOrder(), o2.getFieldDef().getOrder());
35  }
36  if(c == 0) {
37  c = CompareUtil.compare(o1.getFieldDef().getLabelKey(), o2.getFieldDef().getLabelKey());
38  }
39  if(c == 0 && o1.getId() != null && o2.getId() != null) {
40  c = CompareUtil.compare((Long) o1.getId(), (Long) o2.getId());
41  }
42  return c;
43  }
Here is the call graph for this function:

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