Enum Class EnrollmentStatus

java.lang.Object
java.lang.Enum<EnrollmentStatus>
com.ericbouchut.learndev.course.entity.EnrollmentStatus
All Implemented Interfaces:
Serializable, Comparable<EnrollmentStatus>, Constable

public enum EnrollmentStatus extends Enum<EnrollmentStatus>
Persisted states of the student course progress lifecycle (see the diagram in CONTRIBUTING.md).

ENROLLED covers the diagram's Enrolled and NotStarted states: v1 has no prerequisites, so enrolling succeeds synchronously and the pending/failed states are not stored.

  • Enum Constant Details

  • Method Details

    • values

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