BrightSide Workbench Full Report + Source Code
org.turro.action.queue.NotificationCategoryComparator Class Reference
Inheritance diagram for org.turro.action.queue.NotificationCategoryComparator:
Collaboration diagram for org.turro.action.queue.NotificationCategoryComparator:

Public Member Functions

int compare (NotificationCategory o1, NotificationCategory o2)
 

Detailed Description

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

Definition at line 29 of file NotificationCategoryComparator.java.

Member Function Documentation

◆ compare()

int org.turro.action.queue.NotificationCategoryComparator.compare ( NotificationCategory  o1,
NotificationCategory  o2 
)

Definition at line 32 of file NotificationCategoryComparator.java.

32  {
33  int result = CompareUtil.compare(new Path(o1.getIdCategory()).getRoot(), new Path(o2.getIdCategory()).getRoot());
34  if(result == 0) {
35  result = CompareUtil.compare(o1.getCategory(), o2.getCategory());
36  }
37  if(result == 0) {
38  result = CompareUtil.compare(o1.getIdCategory(), o2.getIdCategory());
39  }
40  return result;
41  }
Here is the call graph for this function:

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