Annotation Interface FixedYearlyHoliday
@Target(METHOD)
@Retention(RUNTIME)
@Repeatable(FixedYearlyHolidayContainer.class)
public @interface FixedYearlyHoliday
Defines holiday that has the same date independent of year (like "4th of July") in annotated business calendar (see
BusinessCalendar).
Multiple FixedYearlyHoliday annotations may be placed on a single method. FixedYearlyHoliday annotation
may be present on multiple methods of the same class, annotated method can have any name and return value.
Example:
@BusinessCalendar(name = "calendarName", code = "uniqueCalendarCode")
public interface AnnotatedBusinessCalendarExample {
@FixedYearlyHoliday(month = Month.NOVEMBER, dayOfMonth = 4)
@FixedYearlyHoliday(month = Month.JUNE, dayOfMonth = 12)
void fixedYearlyHolidays();
}
- See Also:
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionintReturns day of month for given holiday.ReturnsMonthfor given holiday. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDescribes why given day is a holiday.