Module de.focus_shift.jollyday.core
Package de.focus_shift.jollyday.core.spi
Interface RelativeToFixed
-
public interface RelativeToFixed extends Described, Limited
Represents the configuration of a holiday that is in relation to aFixeddate.- 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
RelativeToFixedParseris used.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.focus_shift.jollyday.core.spi.Limited
Limited.YearCycle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Fixeddate()Describes the anchor date for the relation of the new holidayorg.threeten.extra.Daysdays()Describes the days in relation to the fixed date of the new holidayDayOfWeekweekday()Describes the weekday on which the new holiday occursRelationwhen()Describes the relation of the new holiday to the fixed date-
Methods inherited from interface de.focus_shift.jollyday.core.spi.Described
descriptionPropertiesKey, holidayType
-
-
-
-
Method Detail
-
weekday
DayOfWeek weekday()
Describes the weekday on which the new holiday occurs- Returns:
- the weekday of the new holiday
-
days
org.threeten.extra.Days days()
Describes the days in relation to the fixed date of the new holiday- Returns:
- the days to shift
-
when
Relation when()
Describes the relation of the new holiday to the fixed date- Returns:
- the relation
-
date
Fixed date()
Describes the anchor date for the relation of the new holiday- Returns:
- anchor date for the new holiday
-
-