|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.util.SortComparator
Sort Comparator is the base for all sorting operations in MARF.
$Id: SortComparator.java,v 1.9 2005/12/24 19:47:39 mokhov Exp $
Field Summary | |
static int |
ASCENDING
Constant indicating to sort in the ascending order. |
static int |
DESCENDING
Constant indicating to sort in the descending order. |
protected int |
iSortMode
Current sorting mode: either ASCENDING
or DESCENDING . |
Constructor Summary | |
SortComparator()
When constsructed, default mode is ASCENDING. |
|
SortComparator(int piSortMode)
When constsructed, the mode is the one specified. |
Method Summary | |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
int |
getSortMode()
Retrieves the current sorting mode. |
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 |
compare, equals |
Field Detail |
public static final int ASCENDING
public static final int DESCENDING
protected int iSortMode
ASCENDING
or DESCENDING
.
Constructor Detail |
public SortComparator()
public SortComparator(int piSortMode)
piSortMode
- desired sorting mode of ASCENDING or DESCENDING.
java.lang.IllegalArgumentException
- is not ASCENDING or DESCENDINGMethod Detail |
public int getSortMode()
DESCENDING
,
ASCENDING
public static java.lang.String getMARFSourceCodeRevision()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |