CLRA 0.1.2

com.clra.rowing
Class RowingSessionType

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

public class RowingSessionType
extends Object
implements Comparable, Serializable

Represents the type of a rowing session.

Version:
$Id: RowingSessionType.java,v 1.2 2002/02/18 18:05:04 rphall Exp $
Author:
Rick Hall
See Also:
Serialized Form

Field Summary
static String NAME_PRACTICE
           
static String NAME_REGATTA
           
static RowingSessionType PRACTICE
           
static RowingSessionType REGATTA
           
 
Constructor Summary
protected RowingSessionType(String name)
           
 
Method Summary
 int compareTo(Object o)
          Compares a level to other levels and valid level names.
 boolean equals(Object o)
           
 String getName()
           
static RowingSessionType getType(String name)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME_PRACTICE

public static final String NAME_PRACTICE

NAME_REGATTA

public static final String NAME_REGATTA

PRACTICE

public static final RowingSessionType PRACTICE

REGATTA

public static final RowingSessionType REGATTA
Constructor Detail

RowingSessionType

protected RowingSessionType(String name)
Method Detail

getType

public static RowingSessionType getType(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 DefaultRowingSessionTypeComparator
Specified by:
compareTo in interface Comparable
Parameters:
o - a non-null RowingSessionLevel or a String NAME of a level
See Also:
DefaultRowingSessionTypeComparator

CLRA 0.1.2