|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.util.SortComparator marf.util.comparators.FrequencyComparator
public class FrequencyComparator
Compares StatisticalObjects by their frequency when sorting.
$Id: FrequencyComparator.java,v 1.15 2007/12/01 00:26:51 mokhov Exp $
StatisticalObject
,
WordStats
,
Serialized FormField Summary |
---|
Fields inherited from class marf.util.SortComparator |
---|
ASCENDING, DESCENDING, iSortMode |
Constructor Summary | |
---|---|
FrequencyComparator(int piSortMode)
Constructs a frequency comparator with the specified sort mode. |
Method Summary | |
---|---|
int |
compare(java.lang.Object poStatsObject1,
java.lang.Object poStatsObject2)
Implementation of the Comparator interface for the StatisticalObjects. |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
Methods inherited from class marf.util.SortComparator |
---|
getSortMode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public FrequencyComparator(int piSortMode)
piSortMode
- ASCENDING or DESCENDINGMethod Detail |
---|
public int compare(java.lang.Object poStatsObject1, java.lang.Object poStatsObject2)
StatisticalObject
objects we
compare their frequencies only.
poStatsObject1
- first stats object to comparepoStatsObject2
- second stats object to compare
Comparator.compare(java.lang.Object, java.lang.Object)
,
StatisticalObject
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |