| Enum Constant and Description |
|---|
Choice
A form of quiz when the end-user is asked to select one answer from an answers list where
one answer is marked as correct.
|
Enter
A form of quiz when the end-user is asked to enter answer and API client checks
correctness form the list of possible answers.
|
| Modifier and Type | Method and Description |
|---|---|
static QuizType |
fromValue(java.lang.String value) |
java.lang.String |
toString() |
static QuizType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static QuizType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QuizType Choice
public static final QuizType Enter
public static QuizType[] values()
for (QuizType c : QuizType.values()) System.out.println(c);
public static QuizType 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 java.lang.String toString()
toString in class java.lang.Enum<QuizType>public static QuizType fromValue(java.lang.String value)