Class DayPeriodRules


  • public final class DayPeriodRules
    extends java.lang.Object
    • Constructor Detail

      • DayPeriodRules

        private DayPeriodRules()
    • Method Detail

      • getInstance

        public static DayPeriodRules getInstance​(ULocale locale)
        Get a DayPeriodRules object given a locale. If data hasn't been loaded, it will be loaded for all locales at once.
        Parameters:
        locale - locale for which the DayPeriodRules object is requested.
        Returns:
        a DayPeriodRules object for locale.
      • getStartHourForDayPeriod

        private int getStartHourForDayPeriod​(DayPeriodRules.DayPeriod dayPeriod)
                                      throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • hasMidnight

        public boolean hasMidnight()
      • hasNoon

        public boolean hasNoon()
      • parseSetNum

        private static int parseSetNum​(java.lang.String setNumStr)