Enum Class PracticeLevel
- All Implemented Interfaces:
Serializable,Comparable<PracticeLevel>,Constable
Enumeration representing the sport practice levels available for an athlete
within the SportTrack application.
Each constant carries a localized display value (in French) for rendering in the user interface. The practice level helps categorize athletes by their experience and proficiency in a given sport.
- Author:
- SportTrack Team
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents an athlete with a high level of experience and proficiency in the sport.Represents an athlete who is new to the sport with little or no prior experience.Represents an athlete with a moderate level of experience in the sport. -
Method Summary
Modifier and TypeMethodDescriptionReturns the localized display label associated with this practice level.static PracticeLevelReturns the enum constant of this class with the specified name.static PracticeLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BEGINNER
Represents an athlete who is new to the sport with little or no prior experience. -
INTERMEDIATE
Represents an athlete with a moderate level of experience in the sport. -
ADVANCED
Represents an athlete with a high level of experience and proficiency in the sport.
-
-
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
-
getDisplayValue
Returns the localized display label associated with this practice level.- Returns:
- the French display string for this practice level
-