Enum Class PracticeLevel

java.lang.Object
java.lang.Enum<PracticeLevel>
fr.utc.miage.sporttrack.entity.enumeration.PracticeLevel
All Implemented Interfaces:
Serializable, Comparable<PracticeLevel>, Constable

public enum PracticeLevel extends Enum<PracticeLevel>
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
  • Enum Constant Details

    • BEGINNER

      public static final PracticeLevel BEGINNER
      Represents an athlete who is new to the sport with little or no prior experience.
    • INTERMEDIATE

      public static final PracticeLevel INTERMEDIATE
      Represents an athlete with a moderate level of experience in the sport.
    • ADVANCED

      public static final PracticeLevel ADVANCED
      Represents an athlete with a high level of experience and proficiency in the sport.
  • Method Details

    • values

      public static PracticeLevel[] 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

      public static PracticeLevel valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getDisplayValue

      public String getDisplayValue()
      Returns the localized display label associated with this practice level.
      Returns:
      the French display string for this practice level