Enum Class Day

java.lang.Object
java.lang.Enum<Day>
it.univr.passportease.entity.enums.Day
All Implemented Interfaces:
Serializable, Comparable<Day>, Constable

public enum Day extends Enum<Day>
Week days. Used to specify the day of the week in which a OfficeWorkingDay is valid.
  • Enum Constant Details

    • MONDAY

      public static final Day MONDAY
      Monday.
    • TUESDAY

      public static final Day TUESDAY
      Tuesday.
    • WEDNESDAY

      public static final Day WEDNESDAY
      Wednesday.
    • THURSDAY

      public static final Day THURSDAY
      Thursday.
    • FRIDAY

      public static final Day FRIDAY
      Friday.
    • SATURDAY

      public static final Day SATURDAY
      Saturday.
    • SUNDAY

      public static final Day SUNDAY
      Sunday.
  • Constructor Details

    • Day

      private Day()
  • Method Details

    • values

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