Class WeightedWord

Object
com.liferay.portal.kernel.search.suggest.WeightedWord
All Implemented Interfaces:
Comparable<WeightedWord>

public class WeightedWord extends Object implements Comparable<WeightedWord>
Author:
Michael C. Han
  • Constructor Details

    • WeightedWord

      public WeightedWord(String word, float weight)
  • Method Details

    • compareTo

      public int compareTo(WeightedWord weightedWord)
      Specified by:
      compareTo in interface Comparable<WeightedWord>
    • getWeight

      public float getWeight()
    • getWord

      public String getWord()
    • setWeight

      public void setWeight(float weight)