Module de.focus_shift.jollyday.core
Package de.focus_shift.jollyday.core.spi
Interface Movable.MovingCondition
- Enclosing interface:
- Movable
public static interface Movable.MovingCondition
Describes how a holiday, that implements the
Movable interface,
can be moved from a day of a week to another day of a week.
Examples:
- A holiday that falls on a Sunday (weekday) can be moved to the next (with) Monday (substitute).
- A holiday that falls on a Saturday (weekday) can be moved to the previous (with) Friday (substitute).
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@NonNull DayOfWeekRepresents the substitution weekday for the holiday@NonNull DayOfWeekweekday()Represents the day of the week as trigger to move the holiday if the holiday would occur oh this weekday.@NonNull Movable.MovingCondition.Withwith()Represents if the holiday will be moved to the previous or next weekday.
-
Method Details
-
weekday
@NonNull DayOfWeek weekday()Represents the day of the week as trigger to move the holiday if the holiday would occur oh this weekday.- Returns:
- the weekday on which the holiday will be moved to another weekday
-
with
@NonNull Movable.MovingCondition.With with()Represents if the holiday will be moved to the previous or next weekday.- Returns:
- the rule in which direction (next or previous) the holiday will be moved.
-
substitute
@NonNull DayOfWeek substitute()Represents the substitution weekday for the holiday- Returns:
- the weekday the holiday will be moved to
-