CLRA 0.1.2

com.clra.rowing
Class DefaultRowingSessionTypeComparator

java.lang.Object
  |
  +--com.clra.rowing.DefaultRowingSessionTypeComparator
All Implemented Interfaces:
Comparator, Serializable

public class DefaultRowingSessionTypeComparator
extends Object
implements Comparator, Serializable

Compares RowingSessionLevel instances as well as Strings. The default order is PRACTICE, REGATTA.

Version:
$Revision: 1.2 $ $Date: 2002/02/18 18:04:07 $
Author:
Rick Hall
See Also:
Serialized Form

Constructor Summary
DefaultRowingSessionTypeComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
           
static int staticCompare(Object o1, Object o2)
          Compares a level to other levels and valid level names.
 
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

DefaultRowingSessionTypeComparator

public DefaultRowingSessionTypeComparator()
Method Detail

staticCompare

public static int staticCompare(Object o1,
                                Object o2)
Compares a level to other levels and valid level names. The default order is LTR then REGULAR.
Parameters:
o - a non-null RowingSessionType or a String NAME of a level

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator
See Also:
staticCompare(Object,Object)

CLRA 0.1.2