BrightSide Workbench Full Report + Source Code
org.turro.elephant.impl.context.vc.FPComparator Class Reference
Inheritance diagram for org.turro.elephant.impl.context.vc.FPComparator:
Collaboration diagram for org.turro.elephant.impl.context.vc.FPComparator:

Public Member Functions

 FPComparator ()
 
int compare (FileProperties o1, FileProperties o2)
 

Detailed Description

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

Definition at line 26 of file FPComparator.java.

Constructor & Destructor Documentation

◆ FPComparator()

org.turro.elephant.impl.context.vc.FPComparator.FPComparator ( )

Creates a new instance of FPComparator

Definition at line 29 of file FPComparator.java.

29  {
30  }

Member Function Documentation

◆ compare()

int org.turro.elephant.impl.context.vc.FPComparator.compare ( FileProperties  o1,
FileProperties  o2 
)

Definition at line 33 of file FPComparator.java.

33  {
34  int result = o1.getName().compareTo(o2.getName());
35  if(result == 0) {
36  if(o1.getExtension() != null) {
37  result = o1.getExtension().compareTo(o2.getExtension());
38  }
39  }
40  if(result == 0) {
41  if(o1.getLang() != null) {
42  result = o1.getLang().compareTo(o2.getLang());
43  }
44  }
45  if(result == 0) {
46  if(o1.getVersion() != null) {
47  result = o1.getVersion().compareTo(o2.getVersion());
48  }
49  }
50  if(result == 0) {
51  if(o1.getAuthor() != null) {
52  result = o1.getAuthor().compareTo(o2.getAuthor());
53  }
54  }
55  return result;
56  }
Here is the call graph for this function:

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