Package ch.poole.openinghoursparser
Enum Class WeekDay
- All Implemented Interfaces:
Serializable,Comparable<WeekDay>,Constable
Container for objects from the opening_hours specification
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic WeekDayGet the WeekDay value for a StringGet list of all values as StringstoString()static WeekDayReturns the enum constant of this class with the specified name.static WeekDay[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MO
-
TU
-
WE
-
TH
-
FR
-
SA
-
SU
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toString
-
getValue
Get the WeekDay value for a String- Parameters:
day- the WeekDay as a String- Returns:
- a WeekDay or null
-
nameValues
Get list of all values as Strings- Returns:
- a List with all values
-