com.ecyrd.jspwiki
Class SearchResultComparator
java.lang.Object
com.ecyrd.jspwiki.SearchResultComparator
- All Implemented Interfaces:
- Comparator
public class SearchResultComparator
- extends Object
- implements Comparator
Simple class that decides which search results are more
important than others.
Method Summary |
int |
compare(Object o1,
Object o2)
Compares two SearchResult objects, returning
the one that scored higher. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchResultComparator
public SearchResultComparator()
compare
public int compare(Object o1,
Object o2)
- Compares two SearchResult objects, returning
the one that scored higher.
- Specified by:
compare
in interface Comparator