BrightSide Workbench Full Report + Source Code
org.turro.elephant.search.FoundComparator Class Reference
Inheritance diagram for org.turro.elephant.search.FoundComparator:
Collaboration diagram for org.turro.elephant.search.FoundComparator:

Public Member Functions

 FoundComparator ()
 
int compare (Object o1, Object o2)
 

Detailed Description

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

Definition at line 26 of file FoundComparator.java.

Constructor & Destructor Documentation

◆ FoundComparator()

org.turro.elephant.search.FoundComparator.FoundComparator ( )

Creates a new instance of FoundComparator

Definition at line 29 of file FoundComparator.java.

29  {
30  }

Member Function Documentation

◆ compare()

int org.turro.elephant.search.FoundComparator.compare ( Object  o1,
Object  o2 
)

Definition at line 33 of file FoundComparator.java.

33  {
34  IFoundItem i1 = (IFoundItem)o1;
35  IFoundItem i2 = (IFoundItem)o2;
36  return (int)((i2.getSimilarity() * 10000F) - (i1.getSimilarity() * 10000F)) +
37  i1.getLink().compareTo(i2.getLink()) +
38  i1.getId().compareTo(i2.getId());
39  }
Here is the call graph for this function:

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