Enum Class WeekDay

java.lang.Object
java.lang.Enum<WeekDay>
ch.poole.openinghoursparser.WeekDay
All Implemented Interfaces:
Serializable, Comparable<WeekDay>, Constable

public enum WeekDay extends Enum<WeekDay>
Container for objects from the opening_hours specification
  • Enum Constant Details

    • MO

      public static final WeekDay MO
    • TU

      public static final WeekDay TU
    • WE

      public static final WeekDay WE
    • TH

      public static final WeekDay TH
    • FR

      public static final WeekDay FR
    • SA

      public static final WeekDay SA
    • SU

      public static final WeekDay SU
  • 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()
      Overrides:
      toString in class Enum<WeekDay>
    • getValue

      public static WeekDay getValue(String day)
      Get the WeekDay value for a String
      Parameters:
      day - the WeekDay as a String
      Returns:
      a WeekDay or null
    • nameValues

      public static List<String> nameValues()
      Get list of all values as Strings
      Returns:
      a List with all values