Class Calendar.WeekData

java.lang.Object
com.ibm.icu.util.Calendar.WeekData
Enclosing class:
Calendar

public static final class Calendar.WeekData extends Object
Simple, immutable struct-like class for access to the CLDR week data.
  • Field Details

    • firstDayOfWeek

      public final int firstDayOfWeek
      the first day of the week, where 1 = Calendar.SUNDAY and 7 = Calendar.SATURDAY
    • minimalDaysInFirstWeek

      public final int minimalDaysInFirstWeek
      the minimal number of days in the first week
    • weekendOnset

      public final int weekendOnset
      the onset day, where 1 = Calendar.SUNDAY and 7 = Calendar.SATURDAY
    • weekendOnsetMillis

      public final int weekendOnsetMillis
      the onset time in millis during the onset day
    • weekendCease

      public final int weekendCease
      the cease day, where 1 = Calendar.SUNDAY and 7 = Calendar.SATURDAY
    • weekendCeaseMillis

      public final int weekendCeaseMillis
      the cease time in millis during the cease day. Exclusive, so the max is 24:00:00.000. Note that this will format as 00:00 the next day.
  • Constructor Details

    • WeekData

      public WeekData(int fdow, int mdifw, int weekendOnset, int weekendOnsetMillis, int weekendCease, int weekendCeaseMillis)
      Constructor
      Parameters:
      fdow - the first day of the week, where 1 = Calendar.SUNDAY and 7 = Calendar.SATURDAY
      mdifw - the minimal number of days in the first week
      weekendOnset - the onset day, where 1 = Sunday and 7 = Saturday
      weekendOnsetMillis - the onset time in millis during the onset day
      weekendCease - the cease day, where 1 = Sunday and 7 = Saturday
      weekendCeaseMillis - the cease time in millis during the cease day.
  • Method Details