Constructor and Description |
---|
Term(java.lang.String term,
int freq) |
Modifier and Type | Method and 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() |
public java.lang.String term()
public void setTerm(java.lang.String term)
public int freq()
public void setFreq(int freq)
public int compareTo(Term o)
compareTo
in interface java.lang.Comparable<Term>
public static java.util.Comparator<Term> sortByFreq()
public static java.util.Comparator<Term> sortAlphabetically()
Copyright © 2010 - 2020 Adobe. All Rights Reserved