Enum Class WeekDay

java.lang.Object
java.lang.Enum<WeekDay>
de.espirit.common.util.WeekDay
All Implemented Interfaces:
Serializable, Comparable<WeekDay>, Constable

public enum WeekDay extends Enum<WeekDay>
Since:
4.0
  • Enum Constant Details

    • SUNDAY

      public static final WeekDay SUNDAY
      A week day.
      Since:
      4.0
    • MONDAY

      public static final WeekDay MONDAY
      A week day.
      Since:
      4.0
    • TUESDAY

      public static final WeekDay TUESDAY
      A week day.
      Since:
      4.0
    • WEDNESDAY

      public static final WeekDay WEDNESDAY
      A week day.
      Since:
      4.0
    • THURSDAY

      public static final WeekDay THURSDAY
      A week day.
      Since:
      4.0
    • FRIDAY

      public static final WeekDay FRIDAY
      A week day.
      Since:
      4.0
    • SATURDAY

      public static final WeekDay SATURDAY
      A week day.
      Since:
      4.0
  • Method Details

    • values

      public static WeekDay[] 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 WeekDay 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
    • toString

      public String toString()
      The locale dependent name of the week day, e.g. on a french locale MONDAY.toString() will return "Lundi".
      Overrides:
      toString in class Enum<WeekDay>
      Returns:
      The locale specific week day name.
      Since:
      4.0
    • getSortedWeekDays

      public static WeekDay[] getSortedWeekDays()
      A sorted array of week days where the first week day in the returned array is locale dependent (on some locales the first day of a week is SUNDAY and on some it is MONDAY).
      Since:
      4.0