|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarf.Stats.StatisticalObject
marf.Stats.WordStats
public class WordStats
A pure container for statistics of a word --- no business logic.
$Id: WordStats.java,v 1.21 2007/12/18 21:57:15 mokhov Exp $
| Field Summary |
|---|
| Fields inherited from class marf.Stats.StatisticalObject |
|---|
iFrequency, iRank |
| Constructor Summary | |
|---|---|
WordStats()
Constructs the default object with an empty lexeme. |
|
WordStats(int piFrequency)
Constructs object with the desired frequency. |
|
WordStats(int piFrequency,
java.lang.String pstrLexeme)
Constructs object with the desired frequency and the lexeme. |
|
WordStats(WordStats poWordStats)
Copy-constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Implements Cloneable interface for the WordStats object. |
java.lang.String |
getLexeme()
Retrieves the lexeme of the object. |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
java.lang.String |
toString()
Reports lexeme, frequency, and rank of an occurrence of a word. |
| Methods inherited from class marf.Stats.StatisticalObject |
|---|
equals, getFrequency, getRank, hashCode, incFrequency, incRank, setRank |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WordStats()
public WordStats(int piFrequency,
java.lang.String pstrLexeme)
piFrequency - the frequencypstrLexeme - the lexemepublic WordStats(int piFrequency)
piFrequency - the frequencypublic WordStats(WordStats poWordStats)
poWordStats - WordStats object to copy properties from| Method Detail |
|---|
public final java.lang.String getLexeme()
public java.lang.String toString()
toString in class StatisticalObjectObject.toString()public java.lang.Object clone()
clone in class StatisticalObjectObject.clone()public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||