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