|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.wallstreetwise.core.util.ScoredSuggestion
public class ScoredSuggestion
The ScoredSuggestion class implements Comparable and contains a word along with its equivalency ranking.
| Constructor Summary | |
|---|---|
ScoredSuggestion(java.lang.String suggestion,
double score)
Create a ScoredSuggestion object. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
NOTE: This method returns comparison values in DESCENDING order since this format is most acceptable to the user, i.e., show words with highest similarity score first in the suggestions list. |
double |
getScore()
Return the equivalency ranking. |
java.lang.String |
getSuggestion()
Return the suggestion String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScoredSuggestion(java.lang.String suggestion,
double score)
suggestion - a String representing a single word.score - a double representing the equivalency score.| Method Detail |
|---|
public final int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - an Object.
public final java.lang.String getSuggestion()
public final double getScore()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||