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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRowingSessionTypeComparator
public DefaultRowingSessionTypeComparator()
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)