Module de.focus_shift.jollyday.core
Package de.focus_shift.jollyday.core.spi
Interface RelativeToFixedHolidayConfiguration
Represents the configuration of a holiday that is in relation to a
FixedHolidayConfiguration date.
- If only weekday is set it will use the weekday.
- If only days is set is not set it will use days.
- If both is set it will use the weekday.
and can be
- Limited
- Described
Example: A holiday on tuesday before the second friday in october A holiday on 3 days after the second friday in october
The RelativeToFixedParser is used.
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.focus_shift.jollyday.core.spi.Limited
Limited.YearCycle -
Method Summary
Modifier and TypeMethodDescription@NonNull FixedHolidayConfigurationdate()Describes the anchor date for the relation of the new holiday@NonNull Optional<org.threeten.extra.Days>days()Describes the days in relation to the fixed date of the new holidayweekday()Describes the weekday on which the new holiday occurswhen()Describes the relation of the new holiday to the fixed dateMethods inherited from interface de.focus_shift.jollyday.core.spi.Described
descriptionPropertiesKey, descriptionPropertiesKeyPrefix, descriptionPropertiesKeyPrefixSeparator, holidayType
-
Method Details
-
weekday
Describes the weekday on which the new holiday occurs- Returns:
- the weekday of the new holiday
-
days
@NonNull Optional<org.threeten.extra.Days> days()Describes the days in relation to the fixed date of the new holiday- Returns:
- the days to shift
-
when
Describes the relation of the new holiday to the fixed date- Returns:
- the relation
-
date
@NonNull FixedHolidayConfiguration date()Describes the anchor date for the relation of the new holiday- Returns:
- anchor date for the new holiday
-