Class ConfigurableCalendar

  • All Implemented Interfaces:
    Calendar

    public final class ConfigurableCalendar
    extends Object
    implements Calendar
    A Calendar that can be programmatically configured.
    Since:
    2.1.0
    Author:
    Marc Wrobel
    • Constructor Detail

      • ConfigurableCalendar

        public ConfigurableCalendar​(Collection<Holiday> holidays)
        Creates a new instance using the given bank Holidays.
        Parameters:
        holidays - the Holidays that the calendar will be using.
        Throws:
        NullPointerException - if holidays is {code null} or if one of the holiday in holidays is {code null}.
      • ConfigurableCalendar

        public ConfigurableCalendar​(Holiday... holidays)
        Creates a new instance using the given bank Holidays.
        Parameters:
        holidays - the Holidays that the calendar will be using.
        Throws:
        NullPointerException - if holidays is {code null} or if one of the holiday in holidays is {code null}.