Package com.ibm.icu.util
Class Calendar.WeekData
java.lang.Object
com.ibm.icu.util.Calendar.WeekData
- Enclosing class:
Calendar
Simple, immutable struct-like class for access to the CLDR week data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
the first day of the week, where 1 =Calendar.SUNDAY
and 7 =Calendar.SATURDAY
final int
the minimal number of days in the first weekfinal int
the cease day, where 1 =Calendar.SUNDAY
and 7 =Calendar.SATURDAY
final int
the cease time in millis during the cease day.final int
the onset day, where 1 =Calendar.SUNDAY
and 7 =Calendar.SATURDAY
final int
the onset time in millis during the onset day -
Constructor Summary
ConstructorsConstructorDescriptionWeekData
(int fdow, int mdifw, int weekendOnset, int weekendOnsetMillis, int weekendCease, int weekendCeaseMillis) Constructor -
Method Summary
-
Field Details
-
firstDayOfWeek
public final int firstDayOfWeekthe first day of the week, where 1 =Calendar.SUNDAY
and 7 =Calendar.SATURDAY
-
minimalDaysInFirstWeek
public final int minimalDaysInFirstWeekthe minimal number of days in the first week -
weekendOnset
public final int weekendOnsetthe onset day, where 1 =Calendar.SUNDAY
and 7 =Calendar.SATURDAY
-
weekendOnsetMillis
public final int weekendOnsetMillisthe onset time in millis during the onset day -
weekendCease
public final int weekendCeasethe cease day, where 1 =Calendar.SUNDAY
and 7 =Calendar.SATURDAY
-
weekendCeaseMillis
public final int weekendCeaseMillisthe 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 weekweekendOnset
- the onset day, where 1 = Sunday and 7 = SaturdayweekendOnsetMillis
- the onset time in millis during the onset dayweekendCease
- the cease day, where 1 = Sunday and 7 = SaturdayweekendCeaseMillis
- the cease time in millis during the cease day.
-
-
Method Details