BrightSide Workbench Full Report + Source Code
org.turro.calendar.event.CalendarEventComparator Class Reference
Inheritance diagram for org.turro.calendar.event.CalendarEventComparator:
Collaboration diagram for org.turro.calendar.event.CalendarEventComparator:

Public Member Functions

int compare (ICalendarEvent o1, ICalendarEvent o2)
 

Detailed Description

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

Definition at line 29 of file CalendarEventComparator.java.

Member Function Documentation

◆ compare()

int org.turro.calendar.event.CalendarEventComparator.compare ( ICalendarEvent  o1,
ICalendarEvent  o2 
)

Definition at line 32 of file CalendarEventComparator.java.

32  {
33  int result = CompareUtil.compare(o1.getBeginDate(), o2.getBeginDate());
34  if(result == 0) {
35  result = CompareUtil.compare(o1.getPath(), o2.getPath());
36  }
37  if(result == 0) {
38  result = CompareUtil.compare(o1.getEndDate(), o2.getEndDate());
39  }
40  if(result == 0) {
41  result = CompareUtil.compare(o1.getTitle(), o2.getTitle());
42  }
43  if(result == 0) {
44  result = CompareUtil.compare(o1.getContent(), o2.getContent());
45  }
46  return result;
47  }
Here is the call graph for this function:

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