|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Medication.Color>
scheduler.model.Medication.Color
public static enum Medication.Color
Enumerated color options for the description of a medication.
Enum Constant Summary | |
---|---|
BLUE
|
|
GREEN
|
|
NONE
|
|
ORANGE
|
|
PINK
|
|
PURPLE
|
|
RED
|
|
YELLOW
|
Method Summary | |
---|---|
static Medication.Color |
getColorFromInt(int i)
Returns the Color pertaining to the specified integer. |
int |
getNum()
Returns the number associated with this color. |
static Medication.Color |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Medication.Color[] |
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.Color NONE
public static final Medication.Color RED
public static final Medication.Color ORANGE
public static final Medication.Color YELLOW
public static final Medication.Color GREEN
public static final Medication.Color BLUE
public static final Medication.Color PINK
public static final Medication.Color PURPLE
Method Detail |
---|
public static Medication.Color[] values()
for (Medication.Color c : Medication.Color.values()) System.out.println(c);
public static Medication.Color 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.Color getColorFromInt(int i)
i
- the integer representation of a color
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |