Package org.apache.wiki.search
Class SearchResultComparator
java.lang.Object
org.apache.wiki.search.SearchResultComparator
- All Implemented Interfaces:
- java.io.Serializable,- java.util.Comparator<SearchResult>
public class SearchResultComparator extends java.lang.Object implements java.util.Comparator<SearchResult>, java.io.Serializable
Simple class that decides which search results are more important than others.
- See Also:
- Serialized Form
- 
Constructor SummaryConstructors Constructor Description SearchResultComparator()
- 
Method SummaryModifier and Type Method Description intcompare(SearchResult s1, SearchResult s2)Compares two SearchResult objects, returning the one that scored higher.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
- 
Constructor Details- 
SearchResultComparatorpublic SearchResultComparator()
 
- 
- 
Method Details- 
compareCompares two SearchResult objects, returning the one that scored higher.- Specified by:
- comparein interface- java.util.Comparator<SearchResult>
 
 
-