|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Medication.Shape>
scheduler.model.Medication.Shape
public static enum Medication.Shape
Enumerated shape options for the description of a medication.
Enum Constant Summary | |
---|---|
CAPSULE
|
|
ELLIPSOID
|
|
LARGE_CAPSULE
|
|
LARGE_ELLIPSOID
|
|
LARGE_ROUND
|
|
LARGE_TABLET
|
|
NONE
|
|
ROUND
|
|
SMALL_CAPSULE
|
|
SMALL_ELLIPSOID
|
|
SMALL_ROUND
|
|
SMALL_TABLET
|
|
TABLET
|
Method Summary | |
---|---|
int |
getNum()
Returns the number associated with this shape. |
static Medication.Shape |
getShapeFromInt(int i)
Returns the Shape pertaining to the specified integer. |
static Medication.Shape |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Medication.Shape[] |
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.Shape NONE
public static final Medication.Shape ROUND
public static final Medication.Shape CAPSULE
public static final Medication.Shape ELLIPSOID
public static final Medication.Shape TABLET
public static final Medication.Shape SMALL_ROUND
public static final Medication.Shape SMALL_CAPSULE
public static final Medication.Shape SMALL_ELLIPSOID
public static final Medication.Shape SMALL_TABLET
public static final Medication.Shape LARGE_ROUND
public static final Medication.Shape LARGE_CAPSULE
public static final Medication.Shape LARGE_ELLIPSOID
public static final Medication.Shape LARGE_TABLET
Method Detail |
---|
public static Medication.Shape[] values()
for (Medication.Shape c : Medication.Shape.values()) System.out.println(c);
public static Medication.Shape 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.Shape getShapeFromInt(int i)
i
- the integer representation of a shape
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |