Package com.day.cq.search.suggest
Class Term
- java.lang.Object
-
- com.day.cq.search.suggest.Term
-
-
Constructor Summary
Constructors Constructor Description Term(java.lang.String term, int freq)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Term o)
int
freq()
void
setFreq(int freq)
void
setTerm(java.lang.String term)
static java.util.Comparator<Term>
sortAlphabetically()
static java.util.Comparator<Term>
sortByFreq()
java.lang.String
term()
-
-
-
Method Detail
-
term
public java.lang.String term()
-
setTerm
public void setTerm(java.lang.String term)
-
freq
public int freq()
-
setFreq
public void setFreq(int freq)
-
compareTo
public int compareTo(Term o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<Term>
-
sortByFreq
public static java.util.Comparator<Term> sortByFreq()
-
sortAlphabetically
public static java.util.Comparator<Term> sortAlphabetically()
-
-