Class WeekInfo

java.lang.Object
com.miloun.cosmo.WeekInfo

public final class WeekInfo extends Object
Week conventions for a locale's region. Days use ISO-8601 numbering (1 = Monday … 7 = Sunday), matching the JS port's `Intl` convention.

Unlike the Python port (whose PyICU build exposes no weekend API), ICU4J provides the weekend days directly — no hardcoded data.

  • Field Details

    • firstDay

      public final int firstDay
      First day of the week, ISO numbering.
    • minimalDays

      public final int minimalDays
      Minimal days required in the first week of the year.
    • weekend

      public final List<Integer> weekend
      Weekend days, ISO numbering, in onset → cease order.