Interface RelativeToFixedHolidayConfiguration

All Superinterfaces:
Described, Limited

public interface RelativeToFixedHolidayConfiguration extends Described, Limited
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.

  • Method Details

    • weekday

      @NonNull Optional<DayOfWeek> 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

      @NonNull Optional<Relation> 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