Enum Class Weekday

java.lang.Object
java.lang.Enum<Weekday>
de.powerstat.validation.values.Weekday
All Implemented Interfaces:
IValueObject, Serializable, Comparable<Weekday>, Constable

public enum Weekday extends Enum<Weekday> implements IValueObject
Weekday. Not DSGVO relevant. TODO: getShortName (language) TODO: getName (language) TODO: FirstWeekday: set, get (country dependend) Monday, Sunday, Saturday TODO: increment (weekStart Listener) TODO: decrement (weekStart Listener) TODO: days between weekdays (weekday - weekday) TODO: add days mod 7 (weekday + 2) TODO: subtract days mod 7 (weekday - 2) TODO: iterate from first to last weekday dependend on FirstWeekday ???
  • Enum Constant Details

    • MONDAY

      public static final Weekday MONDAY
      Monday.
    • TUESDAY

      public static final Weekday TUESDAY
      Tuesday.
    • WEDNESDAY

      public static final Weekday WEDNESDAY
      Wednesday.
    • THURSDAY

      public static final Weekday THURSDAY
      Thursday.
    • FRIDAY

      public static final Weekday FRIDAY
      Friday.
    • SATURDAY

      public static final Weekday SATURDAY
      Saturday.
    • SUNDAY

      public static final Weekday SUNDAY
      Sunday.
  • Field Details

    • action

      private final int action
      Action number.
  • Constructor Details

    • Weekday

      private Weekday(int action)
      Ordinal constructor.
      Parameters:
      action - Action number
  • 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
    • of

      public static Weekday of(String value)
      Weekday factory.
      Parameters:
      value - Weekday enum string
      Returns:
      Weekday enum
    • getAction

      public int getAction()
      Get action number.
      Returns:
      Action number
    • stringValue

      public String stringValue()
      Returns the value of this Weekday as a string.
      Specified by:
      stringValue in interface IValueObject
      Returns:
      The text value represented by this object after conversion to type string.