Interface Configuration


  • public interface Configuration
    Represents the holiday configuration, meta information like the hierarchy and description and the sub configuration for a specific HolidayCalendar.
    • The `holidays` contains the holiday configuration for every holiday.
    • The `hierarchy` contains the ISO 3166-1 alpha-2 for countries or ISO 3166-2 code for subdivisions.
    • The `description` contains further information.
    • The `subConfiguration` contains the holiday configuration for subdivisions, cities, ... of the main configuration.
    • Method Detail

      • hierarchy

        String hierarchy()
        Contains the ISO 3166-1 alpha-2 for countries or ISO 3166-2 code for subdivisions
        Returns:
        the code of this configuration
      • description

        String description()
        Contains further information like the name.
        Returns:
        the description of this configuration
      • subConfigurations

        Stream<Configuration> subConfigurations()
        Contains the holiday configuration for subdivisions, cities, ... of the main configuration. The hierarchy is built on top of the iso standard. For germany e.g. there is a main configuration for Germany and 16 sub configurations for the subdivisions.
        Returns:
        all configurations for the next hierarchy level like subdivisions or cities.