Package page.codeberg.friedolyn.grades
Enum Class KnownDegree
- All Implemented Interfaces:
Serializable
,Comparable<KnownDegree>
,Constable
All available academic degrees that can be pursued at the Friedrich Schiller University Jena.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
KnownDegree
(String label) Creates a new academic degrees with the given label. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Optional
<KnownDegree> Converts the givenlabel
to the correspondingKnownDegree
enum.static KnownDegree
Returns the enum constant of this class with the specified name.static KnownDegree[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEGREE_22_TEACHER_REGULAR_STATE_SCHOOL
- See Also:
-
DEGREE_23_TEACHER_GYMNASIUM
- See Also:
-
DEGREE_32_TEACHER_REGULAR_STATE_SCHOOL_EXTENSION_SUBJECTS
- See Also:
-
DEGREE_33_TEACHER_GYMNASIUM_EXTENSION_SUBJECTS
- See Also:
-
DEGREE_37_BACHELOR_OF_ARTS
- See Also:
-
DEGREE_47_MASTER_OF_ARTS
- See Also:
-
DEGREE_68_BACHELOR_OF_ARTS
- See Also:
-
DEGREE_78_MASTER_OF_EDUCATION
- See Also:
-
DEGREE_81_BACHELOR_OF_LAWS
- See Also:
-
DEGREE_82_BACHELOR_OF_SCIENCE
- See Also:
-
DEGREE_88_MASTER_OF_SCIENCE
- See Also:
-
FSU_EXTERNAL_DEGREE
- See Also:
-
GUEST_STUDENT
- See Also:
-
-
Field Details
-
label
The meaning of an enum value as it appears in the Friedolin system.
-
-
Constructor Details
-
KnownDegree
Creates a new academic degrees with the given label.- Parameters:
label
- The meaning of an enum value as it appears in the Friedolin system.
-
-
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 correspondingKnownDegree
enum.- Parameters:
label
- The label to convert to an enum.- Returns:
- The corresponding enum value, or an empty
Optional
if the label does not match any enum value.
-