Module seppiko.commons.utils
Package org.seppiko.commons.utils
Enum Class CalendarUtil.DayOfWeekShort
- All Implemented Interfaces:
Serializable,Comparable<CalendarUtil.DayOfWeekShort>,Constable
- Enclosing class:
- CalendarUtil
The
Calendar.DAY_OF_WEEK 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.DAY_OF_WEEKfield indicating Friday.Value of theCalendar.DAY_OF_WEEKfield indicating Monday.Value of theCalendar.DAY_OF_WEEKfield indicating Saturday.Value of theCalendar.DAY_OF_WEEKfield indicating Sunday.Value of theCalendar.DAY_OF_WEEKfield indicating Thursday.Value of theCalendar.DAY_OF_WEEKfield indicating Tuesday.Value of theCalendar.DAY_OF_WEEKfield indicating Wednesday. -
Method Summary
Modifier and TypeMethodDescriptionstatic CalendarUtil.DayOfWeekShortfindByName(String name) Return anCalendarUtil.DayOfWeekShortobject for the given value.intGet day of week codeGet day of week namestatic CalendarUtil.DayOfWeekShortReturns the enum constant of this class with the specified name.static CalendarUtil.DayOfWeekShort[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUN
Value of theCalendar.DAY_OF_WEEKfield indicating Sunday. -
MON
Value of theCalendar.DAY_OF_WEEKfield indicating Monday. -
TUE
Value of theCalendar.DAY_OF_WEEKfield indicating Tuesday. -
WED
Value of theCalendar.DAY_OF_WEEKfield indicating Wednesday. -
THU
Value of theCalendar.DAY_OF_WEEKfield indicating Thursday. -
FRI
Value of theCalendar.DAY_OF_WEEKfield indicating Friday. -
SAT
Value of theCalendar.DAY_OF_WEEKfield indicating Saturday.
-
-
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
-
getDayOfWeekCode
public int getDayOfWeekCode()Get day of week code- Returns:
- code
-
getFormatName
Get day of week name- Returns:
- name
-
findByName
Return anCalendarUtil.DayOfWeekShortobject 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.
-