Package com.ibm.icu.util
Class Calendar.WeekData
- java.lang.Object
-
- com.ibm.icu.util.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 Summary
Fields Modifier and Type Field Description int
firstDayOfWeek
the first day of the week, where 1 =Calendar.SUNDAY
and 7 =Calendar.SATURDAY
int
minimalDaysInFirstWeek
the minimal number of days in the first weekint
weekendCease
the cease day, where 1 =Calendar.SUNDAY
and 7 =Calendar.SATURDAY
int
weekendCeaseMillis
the cease time in millis during the cease day.int
weekendOnset
the onset day, where 1 =Calendar.SUNDAY
and 7 =Calendar.SATURDAY
int
weekendOnsetMillis
the onset time in millis during the onset day
-
Constructor Summary
Constructors Constructor Description WeekData(int fdow, int mdifw, int weekendOnset, int weekendOnsetMillis, int weekendCease, int weekendCeaseMillis)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
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 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 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.
-
-