Enum QuestionDifficulty
- java.lang.Object
-
- java.lang.Enum<QuestionDifficulty>
-
- net.starype.quiz.api.game.question.QuestionDifficulty
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<QuestionDifficulty>
,java.lang.constant.Constable
public enum QuestionDifficulty extends java.lang.Enum<QuestionDifficulty>
-
-
Method Summary
Modifier and Type Method Description static QuestionDifficulty
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static QuestionDifficulty[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EASY
public static final QuestionDifficulty EASY
-
NORMAL
public static final QuestionDifficulty NORMAL
-
HARD
public static final QuestionDifficulty HARD
-
INSANE
public static final QuestionDifficulty INSANE
-
-
Method Detail
-
values
public static QuestionDifficulty[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QuestionDifficulty valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-