Package ch.poole.openinghoursparser
Enum Class Month
- All Implemented Interfaces:
Serializable,Comparable<Month>,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 MonthGet the Month value for a Stringstatic intReturn the last day of the monthGet list of all values as StringstoString()static MonthReturns the enum constant of this class with the specified name.static Month[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JAN
-
FEB
-
MAR
-
APR
-
MAY
-
JUN
-
JUL
-
AUG
-
SEP
-
OCT
-
NOV
-
DEC
-
-
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 Month value for a String- Parameters:
month- the month as a String- Returns:
- a Month or null
-
nameValues
Get list of all values as Strings- Returns:
- a List with all values
-
lastDay
Return the last day of the month- Parameters:
year- the yearmonth- the month- Returns:
- the last day
- Throws:
ch.poole.openinghoursparser.ParseException- if no valid year is supplied and the month is February
-