Interface RelativeToFixed

  • All Superinterfaces:
    Described, Limited

    public interface RelativeToFixed
    extends Described, Limited
    Represents the configuration of a holiday that is in relation to a Fixed 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 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