com.atlassian.confluence.search.didyoumean.lucene.comparators
Class CostComparingSuggestionComparator

java.lang.Object
  extended by com.atlassian.confluence.search.didyoumean.lucene.comparators.CostComparingSuggestionComparator
All Implemented Interfaces:
java.util.Comparator<Suggestion>

public class CostComparingSuggestionComparator
extends java.lang.Object
implements java.util.Comparator<Suggestion>

Compares suggestions by their cost.


Constructor Summary
CostComparingSuggestionComparator()
           
 
Method Summary
 int compare(Suggestion s1, Suggestion s2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

CostComparingSuggestionComparator

public CostComparingSuggestionComparator()
Method Detail

compare

public int compare(Suggestion s1,
                   Suggestion s2)
Specified by:
compare in interface java.util.Comparator<Suggestion>


Copyright © 2003-2010 Atlassian. All Rights Reserved.