public class WeightedSuggestion extends Object implements Comparable<WeightedSuggestion>
| Constructor and Description |
|---|
WeightedSuggestion(String word,
int weight) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(WeightedSuggestion o) |
int |
getWeight() |
String |
getWord() |
String |
toString() |
public WeightedSuggestion(String word, int weight)
public String getWord()
public int getWeight()
public int compareTo(@NotNull
WeightedSuggestion o)
compareTo in interface Comparable<WeightedSuggestion>