|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Medication.Special>
scheduler.model.Medication.Special
public static enum Medication.Special
Enumerated special options for the description of a medication.
Enum Constant Summary | |
---|---|
AFTER_MEAL
|
|
BEFORE_BED
|
|
BEFORE_MEAL
|
|
EMPTY_STOMACH
|
|
NONE
|
|
WITH_FOOD
|
|
WITH_WATER
|
Method Summary | |
---|---|
int |
getNum()
Returns the number associated with this special. |
static Medication.Special |
getSpecialFromInt(int i)
Returns the Special pertaining to the specified integer. |
static Medication.Special |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Medication.Special[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Medication.Special NONE
public static final Medication.Special WITH_FOOD
public static final Medication.Special BEFORE_MEAL
public static final Medication.Special AFTER_MEAL
public static final Medication.Special WITH_WATER
public static final Medication.Special EMPTY_STOMACH
public static final Medication.Special BEFORE_BED
Method Detail |
---|
public static Medication.Special[] values()
for (Medication.Special c : Medication.Special.values()) System.out.println(c);
public static Medication.Special 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 name
java.lang.NullPointerException
- if the argument is nullpublic int getNum()
public static Medication.Special getSpecialFromInt(int i)
i
- the integer representation of a special
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |