public enum WorkoutEquipment extends java.lang.Enum<WorkoutEquipment>
Enum Constant and Description |
---|
INVALID |
NONE |
SWIM_FINS |
SWIM_KICKBOARD |
SWIM_PADDLES |
SWIM_PULL_BUOY |
SWIM_SNORKEL |
Modifier and Type | Field and Description |
---|---|
protected short |
value |
Modifier and Type | Method and Description |
---|---|
static WorkoutEquipment |
getByValue(java.lang.Short value) |
static java.lang.String |
getStringFromValue(WorkoutEquipment value)
Retrieves the String Representation of the Value
|
short |
getValue() |
static WorkoutEquipment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WorkoutEquipment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WorkoutEquipment NONE
public static final WorkoutEquipment SWIM_FINS
public static final WorkoutEquipment SWIM_KICKBOARD
public static final WorkoutEquipment SWIM_PADDLES
public static final WorkoutEquipment SWIM_PULL_BUOY
public static final WorkoutEquipment SWIM_SNORKEL
public static final WorkoutEquipment INVALID
public static WorkoutEquipment[] values()
for (WorkoutEquipment c : WorkoutEquipment.values()) System.out.println(c);
public static WorkoutEquipment valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static WorkoutEquipment getByValue(java.lang.Short value)
public static java.lang.String getStringFromValue(WorkoutEquipment value)
value
- The enum constantpublic short getValue()