CLRA 0.1.2

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

Constructor Summary
DefaultRowingSessionStateComparator()
           
 
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

DefaultRowingSessionStateComparator

public DefaultRowingSessionStateComparator()
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 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)

CLRA 0.1.2