Class Calendar.WeekData

  • Enclosing class:
    Calendar

    public static final class Calendar.WeekData
    extends java.lang.Object
    Simple, immutable struct-like class for access to the CLDR weekend data.
    • Field Detail

      • minimalDaysInFirstWeek

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

        public final int weekendOnsetMillis
        the onset time in millis during the onset day
      • 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 Detail

      • 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 Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object