Package page.codeberg.friedolyn.grades
Enum Class Exam.ExamStatus
- All Implemented Interfaces:
Serializable
,Comparable<Exam.ExamStatus>
,Constable
- Enclosing class:
Exam
Whether the exam is over and, if so, whether successful or not.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe exam has not yet taken place, has not yet been graded, or the grade has not yet been entered into the Friedolin system.The exam has taken place and has been graded, but the corresponding module's grade has not yet been updated accordingly.The student was unsuccessful in the exam.The student was successful in the exam. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Optional
<Exam.ExamStatus> Converts the givenlabel
to the corresponding key in theExam.ExamStatus
enum.static Exam.ExamStatus
Returns the enum constant of this class with the specified name.static Exam.ExamStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PASSED
The student was successful in the exam. -
FAILED
The student was unsuccessful in the exam. -
ENROLLED
The exam has not yet taken place, has not yet been graded, or the grade has not yet been entered into the Friedolin system. -
EXAM_AVAILABLE
The exam has taken place and has been graded, but the corresponding module's grade has not yet been updated accordingly.
-
-
Field Details
-
label
-
-
Constructor Details
-
ExamStatus
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
ofLabel
Converts the givenlabel
to the corresponding key in theExam.ExamStatus
enum.- Parameters:
label
- The label to convert to a key.- Returns:
- The corresponding enum key, or an empty
Optional
if the label does not match any enum value.
-