Package fr.marcwrobel.jbanking.calendar
Enum DayOfWeekHoliday
- All Implemented Interfaces:
Holiday,Serializable,Comparable<DayOfWeekHoliday>,java.lang.constant.Constable
- Since:
- 2.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFriday is the day of the week between Thursday and Saturday.Monday is the day of the week between Sunday and Tuesday.Saturday is the day of the week between Friday and Sunday.Sunday is the day of the week between Saturday and Monday.Thursday is the day of the week between Wednesday and Friday.Tuesday is the day of the week between Monday and Wednesday.Wednesday is the day of the week between Tuesday and Thursday. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck whether the given date is an occurrence of this holiday.static DayOfWeekHolidayReturns the enum constant of this type with the specified name.static DayOfWeekHoliday[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MONDAY
Monday is the day of the week between Sunday and Tuesday. It seems it is never a weekend day.- See Also:
-
TUESDAY
Tuesday is the day of the week between Monday and Wednesday. It seems it is never a weekend day.- See Also:
-
WEDNESDAY
Wednesday is the day of the week between Tuesday and Thursday. It seems it is never a weekend day.- See Also:
-
THURSDAY
Thursday is the day of the week between Wednesday and Friday. It seems is never a weekend day.- See Also:
-
FRIDAY
Friday is the day of the week between Thursday and Saturday. Friday is the first day of the weekend in some countries, with Saturday the second.- See Also:
-
SATURDAY
Saturday is the day of the week between Friday and Sunday. In most countries, Saturday is a weekend day.- See Also:
-
SUNDAY
Sunday is the day of the week between Saturday and Monday. Sunday is a day of rest in most Western countries, and a part of the weekend.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
check
Description copied from interface:HolidayCheck whether the given date is an occurrence of this holiday.
-