CLRA 0.1.2

com.clra.rowing
Class RowingSessionLevel

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

public class RowingSessionLevel
extends Object
implements Comparable, Serializable

Represents the level of a rowing session.

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

Field Summary
static RowingSessionLevel LTR
           
static String NAME_LTR
           
static String NAME_REGULAR
           
static RowingSessionLevel REGULAR
           
 
Constructor Summary
protected RowingSessionLevel(String name)
           
 
Method Summary
 int compareTo(Object o)
          Compares a level to other levels and valid level names.
 boolean equals(Object o)
           
static RowingSessionLevel getLevel(String name)
           
 String getName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME_LTR

public static final String NAME_LTR

NAME_REGULAR

public static final String NAME_REGULAR

LTR

public static final RowingSessionLevel LTR

REGULAR

public static final RowingSessionLevel REGULAR
Constructor Detail

RowingSessionLevel

protected RowingSessionLevel(String name)
Method Detail

getLevel

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

CLRA 0.1.2