public static enum CourseList.ChoiceType extends Enum<CourseList.ChoiceType>
CourseList
Enum Constant and Description |
---|
CHOICE
choice type
|
MANDATORY
mandatory type
|
OPTIONAL
optional type
|
Modifier and Type | Method and Description |
---|---|
static CourseList.ChoiceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CourseList.ChoiceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CourseList.ChoiceType MANDATORY
public static final CourseList.ChoiceType OPTIONAL
public static final CourseList.ChoiceType CHOICE
public static CourseList.ChoiceType[] values()
for (CourseList.ChoiceType c : CourseList.ChoiceType.values()) System.out.println(c);
public static CourseList.ChoiceType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null