public class WeightedWord extends Object implements Comparable<WeightedWord>
| Constructor and Description |
|---|
WeightedWord(String word,
float weight) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(WeightedWord weightedWord) |
float |
getWeight() |
String |
getWord() |
void |
setWeight(float weight) |
public int compareTo(WeightedWord weightedWord)
compareTo in interface Comparable<WeightedWord>public float getWeight()
public String getWord()
public void setWeight(float weight)