- All Implemented Interfaces:
Serializable,Comparable<CalendarUtil.MonthShort>,Constable
- Enclosing class:
- CalendarUtil
The
Calendar.MONTH field indicating.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionValue of theCalendar.MONTHfield indicating the fourth month of the year in the Gregorian and Julian calendars.Value of theCalendar.MONTHfield indicating the eighth month of the year in the Gregorian and Julian calendars.Value of theCalendar.MONTHfield indicating the twelfth month of the year in the Gregorian and Julian calendars.Value of theCalendar.MONTHfield indicating the second month of the year in the Gregorian and Julian calendars.Value of theCalendar.MONTHfield indicating the first month of the year in the Gregorian and Julian calendars.Value of theCalendar.MONTHfield indicating the seventh month of the year in the Gregorian and Julian calendars.Value of theCalendar.MONTHfield indicating the sixth month of the year in the Gregorian and Julian calendars.Value of theCalendar.MONTHfield indicating the third month of the year in the Gregorian and Julian calendars.Value of theCalendar.MONTHfield indicating the fifth month of the year in the Gregorian and Julian calendars.Value of theCalendar.MONTHfield indicating the eleventh month of the year in the Gregorian and Julian calendars.Value of theCalendar.MONTHfield indicating the tenth month of the year in the Gregorian and Julian calendars.Value of theCalendar.MONTHfield indicating the ninth month of the year in the Gregorian and Julian calendars. -
Method Summary
Modifier and TypeMethodDescriptionstatic CalendarUtil.MonthShortfindByName(String name) Return anCalendarUtil.MonthShortobject for the given value.Get month nameintgetMonth()Get month codestatic CalendarUtil.MonthShortReturns the enum constant of this class with the specified name.static CalendarUtil.MonthShort[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JAN
Value of theCalendar.MONTHfield indicating the first month of the year in the Gregorian and Julian calendars. -
FEB
Value of theCalendar.MONTHfield indicating the second month of the year in the Gregorian and Julian calendars. -
MAR
Value of theCalendar.MONTHfield indicating the third month of the year in the Gregorian and Julian calendars. -
APR
Value of theCalendar.MONTHfield indicating the fourth month of the year in the Gregorian and Julian calendars. -
MAY
Value of theCalendar.MONTHfield indicating the fifth month of the year in the Gregorian and Julian calendars. -
JUN
Value of theCalendar.MONTHfield indicating the sixth month of the year in the Gregorian and Julian calendars. -
JUL
Value of theCalendar.MONTHfield indicating the seventh month of the year in the Gregorian and Julian calendars. -
AUG
Value of theCalendar.MONTHfield indicating the eighth month of the year in the Gregorian and Julian calendars. -
SEP
Value of theCalendar.MONTHfield indicating the ninth month of the year in the Gregorian and Julian calendars. -
OCT
Value of theCalendar.MONTHfield indicating the tenth month of the year in the Gregorian and Julian calendars. -
NOV
Value of theCalendar.MONTHfield indicating the eleventh month of the year in the Gregorian and Julian calendars. -
DEC
Value of theCalendar.MONTHfield indicating the twelfth month of the year in the Gregorian and Julian calendars.
-
-
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
-
getMonth
public int getMonth()Get month code- Returns:
- code
-
getFormatName
Get month name- Returns:
- name
-
findByName
Return anCalendarUtil.MonthShortobject for the given value.- Parameters:
name- the method value as a String.- Returns:
- the corresponding
HttpMethod, ornullif not found - Throws:
NullPointerException- method name is null.
-