Module de.focus_shift.jollyday.core
Package de.focus_shift.jollyday.core.spi
Interface FixedWeekdayRelativeToFixed
-
public interface FixedWeekdayRelativeToFixed extends Described, Limited
Represents the configuration of a holiday that occurs on a fixed weekday relative to aFixedholiday that can be- Limited
- Described
Example: A holiday on the first thursday after the second april. In this example the `first` is the which (occurrence) `thursday` is thr weekday (dayOfWeek) `after` is the when (relation) `day` is the second april (fixed)
The
FixedWeekdayRelativeToFixedParseris 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 Fixedday()Describes the anchor the new holidayDayOfWeekweekday()Describes, based on the anchor (day), on which weekday the new holiday will occurRelationwhen()Describes, based on the anchor (day), the relation like before, after, ... the new holiday will occurOccurrencewhich()Describes, based on the anchor (day), on which occurrence the new holiday will occur-
Methods inherited from interface de.focus_shift.jollyday.core.spi.Described
descriptionPropertiesKey, holidayType
-
-
-
-
Method Detail
-
day
Fixed day()
Describes the anchor the new holiday- Returns:
- the fixed holiday
-
which
Occurrence which()
Describes, based on the anchor (day), on which occurrence the new holiday will occur- Returns:
- the occurrence, like the first
-
weekday
DayOfWeek weekday()
Describes, based on the anchor (day), on which weekday the new holiday will occur- Returns:
- the weekday
-
when
Relation when()
Describes, based on the anchor (day), the relation like before, after, ... the new holiday will occur- Returns:
- the relation to the anchor
-
-