|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.clra.rowing.SeatPreference
Defines seating preference that may be specified by a participant for a rowing session.
Field Summary | |
static SeatPreference |
COX
Indicates a member prefers to cox. |
static String |
NAME_COX
Indicates a member prefers to cox. |
static String |
NAME_PORT
Indicates a member prefers a port rowing position |
static String |
NAME_PORT_THEN_STARBOARD
Indicates a member prefers a port position, but will also row starboard. |
static String |
NAME_STARBOARD
Indicates a member prefers a starboard rowing position |
static String |
NAME_STARBOARD_THEN_PORT
Indicates a member prefers a starboard position, but will also row port. |
static SeatPreference |
PORT
Indicates a member prefers a port rowing position |
static SeatPreference |
PORT_THEN_STARBOARD
Indicates a member prefers a port position, but will also row starboard. |
static SeatPreference |
STARBOARD
Indicates a member prefers a starboard rowing position |
static SeatPreference |
STARBOARD_THEN_PORT
Indicates a member prefers a starboard position, but will also row port. |
Constructor Summary | |
protected |
SeatPreference(String name)
|
Method Summary | |
static boolean |
compare(String s1,
String s2)
|
boolean |
equals(Object o)
|
String |
getName()
|
static SeatPreference |
getSeatPreference(String name)
SeatPreference is not a required field in a participant record, therefore if a null or blank name is passed to this method, an IllegalArgumentException is NOT thrown, but rather a null instance is returned. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String NAME_STARBOARD
public static final String NAME_PORT
public static final String NAME_STARBOARD_THEN_PORT
public static final String NAME_PORT_THEN_STARBOARD
public static final String NAME_COX
public static final SeatPreference STARBOARD
public static final SeatPreference PORT
public static final SeatPreference STARBOARD_THEN_PORT
public static final SeatPreference PORT_THEN_STARBOARD
public static final SeatPreference COX
Constructor Detail |
protected SeatPreference(String name)
Method Detail |
public static SeatPreference getSeatPreference(String name) throws RowingException
Note: values not defined by this class, will throw a RowingException.
public String getName()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public static boolean compare(String s1, String s2)
public boolean equals(Object o)
equals
in class Object
|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |