com.clra.rowing
Class RowingSessionState
java.lang.Object
|
+--com.clra.rowing.RowingSessionState
- All Implemented Interfaces:
- Comparable, Serializable
- public class RowingSessionState
- extends Object
- implements Comparable, Serializable
Represents the state of a rowing session.
- Version:
- $Id: RowingSessionState.java,v 1.2 2002/02/18 18:04:59 rphall Exp $
- Author:
- Rick Hall
- See Also:
- Serialized Form
NAME_NEW
public static final String NAME_NEW
NAME_TENATIVE
public static final String NAME_TENATIVE
NAME_OPEN
public static final String NAME_OPEN
NAME_LOCKED
public static final String NAME_LOCKED
NAME_BOATING1
public static final String NAME_BOATING1
- Initial boatings
NAME_BOATING2
public static final String NAME_BOATING2
- Final boatings
NAME_COMPLETE
public static final String NAME_COMPLETE
- Attendance. (Combine with BOATING2?)
NAME_INVOICING
public static final String NAME_INVOICING
NAME_CLOSED
public static final String NAME_CLOSED
NAME_CANCELLED
public static final String NAME_CANCELLED
NEW
public static final RowingSessionState NEW
TENATIVE
public static final RowingSessionState TENATIVE
OPEN
public static final RowingSessionState OPEN
LOCKED
public static final RowingSessionState LOCKED
BOATING1
public static final RowingSessionState BOATING1
BOATING2
public static final RowingSessionState BOATING2
COMPLETE
public static final RowingSessionState COMPLETE
INVOICING
public static final RowingSessionState INVOICING
CLOSED
public static final RowingSessionState CLOSED
CANCELLED
public static final RowingSessionState CANCELLED
RowingSessionState
protected RowingSessionState(String name)
getState
public static RowingSessionState getState(String name)
throws RowingException
getName
public String getName()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
compareTo
public int compareTo(Object o)
- Compares a level to other levels and valid level names. The default
order is described in the documentation for
DefaultRowingSessionStateComparator
- Specified by:
compareTo
in interface Comparable
- Parameters:
o
- a non-null RowingSessionLevel or a String NAME of a level- See Also:
DefaultRowingSessionStateComparator