com.commsen.stopwatch.util
Class ReportComparator

java.lang.Object
  extended by com.commsen.stopwatch.util.ReportComparator
All Implemented Interfaces:
java.util.Comparator

public class ReportComparator
extends java.lang.Object
implements java.util.Comparator


Field Summary
static int ASC
           
static ReportComparator BY_AVG_TIME_ASC
           
static ReportComparator BY_AVG_TIME_DESC
           
static ReportComparator BY_COUNT_ASC
           
static ReportComparator BY_COUNT_DESC
           
static ReportComparator BY_GROUP_ASC
           
static ReportComparator BY_GROUP_DESC
           
static ReportComparator BY_LABEL_ASC
           
static ReportComparator BY_LABEL_DESC
           
static ReportComparator BY_MAX_TIME_ASC
           
static ReportComparator BY_MAX_TIME_DESC
           
static ReportComparator BY_MIN_TIME_ASC
           
static ReportComparator BY_MIN_TIME_DESC
           
static ReportComparator BY_TOTAL_TIME_ASC
           
static ReportComparator BY_TOTAL_TIME_DESC
           
static int COUNT
           
static int DESC
           
static int GROUP
           
static int LABEL
           
static int TIME_AVG
           
static int TIME_MAX
           
static int TIME_MIN
           
static int TIME_TOTAL
           
 
Constructor Summary
ReportComparator(int fieldCode, int orderCode)
           
 
Method Summary
 int compare(java.lang.Object arg0, java.lang.Object arg1)
           
 
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
 

Field Detail

GROUP

public static final int GROUP
See Also:
Constant Field Values

LABEL

public static final int LABEL
See Also:
Constant Field Values

COUNT

public static final int COUNT
See Also:
Constant Field Values

TIME_TOTAL

public static final int TIME_TOTAL
See Also:
Constant Field Values

TIME_MIN

public static final int TIME_MIN
See Also:
Constant Field Values

TIME_MAX

public static final int TIME_MAX
See Also:
Constant Field Values

TIME_AVG

public static final int TIME_AVG
See Also:
Constant Field Values

ASC

public static final int ASC
See Also:
Constant Field Values

DESC

public static final int DESC
See Also:
Constant Field Values

BY_GROUP_ASC

public static final ReportComparator BY_GROUP_ASC

BY_GROUP_DESC

public static final ReportComparator BY_GROUP_DESC

BY_LABEL_ASC

public static final ReportComparator BY_LABEL_ASC

BY_LABEL_DESC

public static final ReportComparator BY_LABEL_DESC

BY_COUNT_ASC

public static final ReportComparator BY_COUNT_ASC

BY_COUNT_DESC

public static final ReportComparator BY_COUNT_DESC

BY_MIN_TIME_ASC

public static final ReportComparator BY_MIN_TIME_ASC

BY_MIN_TIME_DESC

public static final ReportComparator BY_MIN_TIME_DESC

BY_MAX_TIME_ASC

public static final ReportComparator BY_MAX_TIME_ASC

BY_MAX_TIME_DESC

public static final ReportComparator BY_MAX_TIME_DESC

BY_AVG_TIME_ASC

public static final ReportComparator BY_AVG_TIME_ASC

BY_AVG_TIME_DESC

public static final ReportComparator BY_AVG_TIME_DESC

BY_TOTAL_TIME_ASC

public static final ReportComparator BY_TOTAL_TIME_ASC

BY_TOTAL_TIME_DESC

public static final ReportComparator BY_TOTAL_TIME_DESC
Constructor Detail

ReportComparator

public ReportComparator(int fieldCode,
                        int orderCode)
Method Detail

compare

public int compare(java.lang.Object arg0,
                   java.lang.Object arg1)
Specified by:
compare in interface java.util.Comparator


Copyright © 2006-2008 Commsen International. All Rights Reserved.