BrightSide Workbench Full Report + Source Code
org.turro.attach.version.AttachVersionComparator Class Reference
Inheritance diagram for org.turro.attach.version.AttachVersionComparator:
Collaboration diagram for org.turro.attach.version.AttachVersionComparator:

Public Member Functions

int compare (Attachment o1, Attachment o2)
 

Detailed Description

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

Definition at line 28 of file AttachVersionComparator.java.

Member Function Documentation

◆ compare()

int org.turro.attach.version.AttachVersionComparator.compare ( Attachment  o1,
Attachment  o2 
)

Definition at line 31 of file AttachVersionComparator.java.

31  {
32  int result = CompareUtil.compare(o1.getFileName(), o2.getFileName());
33  if(result == 0) {
34  result = -CompareUtil.compare(o1.getModification(), o2.getModification());
35  }
36  if(result == 0) {
37  result = CompareUtil.compare(o1.getId(), o2.getId());
38  }
39  return result;
40  }
Here is the call graph for this function:

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