com.clra.rowing
Class DefaultRowingSessionStateComparator
java.lang.Object
|
+--com.clra.rowing.DefaultRowingSessionStateComparator
- All Implemented Interfaces:
- Comparator, Serializable
- public class DefaultRowingSessionStateComparator
- extends Object
- implements Comparator, Serializable
Compares RowingSessionState instances as well as Strings. The default
order is NEW, TENATIVE, OPEN, LOCKED, BOATING1, BOATING2, COMPLETE,
INVOICING, CLOSED, CANCELED.
- Version:
- $Revision: 1.2 $ $Date: 2002/02/18 18:04:04 $
- 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 |
DefaultRowingSessionStateComparator
public DefaultRowingSessionStateComparator()
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 RowingSessionState 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)