modnlp.dstruct
public class WordFrequencyPair extends java.lang.Object implements java.lang.Comparable
Constructor and Description |
---|
WordFrequencyPair(java.lang.String s,
int c) |
WordFrequencyPair(java.lang.String s,
java.lang.Integer c) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object wfp) |
int |
compareTo(WordFrequencyPair wfp) |
int |
getCount() |
java.lang.Integer |
getIntegerCount()
Get the value of count.
|
java.lang.String |
getWord()
Get the value of word.
|
void |
setCount(java.lang.Integer v)
Set the value of count.
|
void |
setWord(java.lang.String v)
Set the value of word.
|
public WordFrequencyPair(java.lang.String s, int c)
public WordFrequencyPair(java.lang.String s, java.lang.Integer c)
public java.lang.String getWord()
public void setWord(java.lang.String v)
v
- Value to assign to word.public java.lang.Integer getIntegerCount()
public int getCount()
public void setCount(java.lang.Integer v)
v
- Value to assign to count.public int compareTo(java.lang.Object wfp)
compareTo
in interface java.lang.Comparable
public int compareTo(WordFrequencyPair wfp)