com.liferay.portal.kernel.search
Class WeightedWord

java.lang.Object
  extended by com.liferay.portal.kernel.search.WeightedWord
All Implemented Interfaces:
java.lang.Comparable<WeightedWord>

public class WeightedWord
extends java.lang.Object
implements java.lang.Comparable<WeightedWord>

Author:
Michael C. Han

Constructor Summary
WeightedWord(java.lang.String word, float weight)
           
 
Method Summary
 int compareTo(WeightedWord weightedWord)
           
 float getWeight()
           
 java.lang.String getWord()
           
 void setWeight(float weight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeightedWord

public WeightedWord(java.lang.String word,
                    float weight)
Method Detail

compareTo

public int compareTo(WeightedWord weightedWord)
Specified by:
compareTo in interface java.lang.Comparable<WeightedWord>

getWeight

public float getWeight()

getWord

public java.lang.String getWord()

setWeight

public void setWeight(float weight)