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

Public Member Functions

int compare (MailItem o1, MailItem o2)
 

Detailed Description

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

Definition at line 29 of file MailItemComparator.java.

Member Function Documentation

◆ compare()

int org.turro.mail.queue.MailItemComparator.compare ( MailItem  o1,
MailItem  o2 
)

Definition at line 32 of file MailItemComparator.java.

32  {
33  int i = CompareUtil.compare(o1.getReason(), o2.getReason());
34  if(i == 0) {
35  i = CompareUtil.compare(o1.getItemDate(), o2.getItemDate());
36  }
37  if(i == 0) {
38  i = CompareUtil.compare(o1.getSubject(), o2.getSubject());
39  }
40  if(i == 0) {
41  i = CompareUtil.compare(o1.getId(), o2.getId());
42  }
43  return i;
44  }
Here is the call graph for this function:

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