BaseCalendar provides basic calendar calculation
functions to support the Julian, Gregorian, and Gregorian-based
calendar systems.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| public static final int | |
| public static final int | |
| private static final int | |
| pack-priv static final int[] | |
| public static final int | |
| public static final int | |
| private static final int[] | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | getCalendarDateFromFixedDate(CalendarDate date, long fixedDate)
Implements abstract sun. Calculates calendar fields and store them in the specified
|
| public int | |
| public static int | |
| public long | |
| pack-priv final long | |
| public long | getFixedDate(CalendarDate date)
Implements abstract sun. Returns the fixed date calculated with the specified calendar date. |
| public long | |
| pack-priv final int | getGregorianYearFromFixedDate(long fixedDate)
Returns the Gregorian year number of the given fixed date. |
| public int | getMonthLength(CalendarDate date)
Implements abstract sun. Returns the length in days of the month specified by the calendar date. |
| private int | |
| public int | |
| public int | Returns: a year length in daysa date)CalendarDateImplements abstract sun. Returns 366 if the specified date is in a leap year, or 365
otherwise This method does not perform the normalization with
the specified |
| protected boolean | isLeapYear(CalendarDate date)
Implements abstract sun. Returns: true if the specified year is a Gregorian leap year, or false otherwise. |
| pack-priv boolean | |
| public boolean | normalize(CalendarDate date)
Implements abstract sun. Normalizes calendar fields in the specified
|
| pack-priv void | |
| public boolean | validate(CalendarDate date)
Implements abstract sun. Checks whether the calendar fields specified by |
| ACCUMULATED_DAYS_IN_MONTH | back to summary |
|---|---|
| pack-priv static final int[] ACCUMULATED_DAYS_IN_MONTH | |
| ACCUMULATED_DAYS_IN_MONTH_LEAP | back to summary |
|---|---|
| pack-priv static final int[] ACCUMULATED_DAYS_IN_MONTH_LEAP | |
| APRIL | back to summary |
|---|---|
| public static final int APRIL | |
| AUGUST | back to summary |
|---|---|
| public static final int AUGUST | |
| BASE_YEAR | back to summary |
|---|---|
| private static final int BASE_YEAR | |
| DAYS_IN_MONTH | back to summary |
|---|---|
| pack-priv static final int[] DAYS_IN_MONTH | |
| DECEMBER | back to summary |
|---|---|
| public static final int DECEMBER | |
| FEBRUARY | back to summary |
|---|---|
| public static final int FEBRUARY | |
| FIXED_DATES | back to summary |
|---|---|
| private static final int[] FIXED_DATES | |
| FRIDAY | back to summary |
|---|---|
| public static final int FRIDAY | |
| JANUARY | back to summary |
|---|---|
| public static final int JANUARY | |
| JULY | back to summary |
|---|---|
| public static final int JULY | |
| JUNE | back to summary |
|---|---|
| public static final int JUNE | |
| MARCH | back to summary |
|---|---|
| public static final int MARCH | |
| MAY | back to summary |
|---|---|
| public static final int MAY | |
| MONDAY | back to summary |
|---|---|
| public static final int MONDAY | |
| NOVEMBER | back to summary |
|---|---|
| public static final int NOVEMBER | |
| OCTOBER | back to summary |
|---|---|
| public static final int OCTOBER | |
| SATURDAY | back to summary |
|---|---|
| public static final int SATURDAY | |
| SEPTEMBER | back to summary |
|---|---|
| public static final int SEPTEMBER | |
| SUNDAY | back to summary |
|---|---|
| public static final int SUNDAY | |
| THURSDAY | back to summary |
|---|---|
| public static final int THURSDAY | |
| TUESDAY | back to summary |
|---|---|
| public static final int TUESDAY | |
| WEDNESDAY | back to summary |
|---|---|
| public static final int WEDNESDAY | |
| BaseCalendar | back to summary |
|---|---|
| public BaseCalendar() | |
| getCalendarDateFromFixedDate | back to summary |
|---|---|
| public void getCalendarDateFromFixedDate(CalendarDate date, long fixedDate) Implements abstract sun. Calculates calendar fields and store them in the specified
| |
| getDayOfWeek | back to summary |
|---|---|
| public int getDayOfWeek(CalendarDate date) Returns the day of week of the given Gregorian date. | |
| getDayOfWeekFromFixedDate | back to summary |
|---|---|
| public static int getDayOfWeekFromFixedDate(long fixedDate) | |
| getDayOfYear | back to summary |
|---|---|
| public long getDayOfYear(CalendarDate date) | |
| getDayOfYear | back to summary |
|---|---|
| pack-priv final long getDayOfYear(int year, int month, int dayOfMonth) | |
| getFixedDate | back to summary |
|---|---|
| public long getFixedDate(CalendarDate date) Implements abstract sun. Doc from sun. Returns the fixed date calculated with the specified calendar date. If the specified date is not normalized, its date fields are normalized.
| |
| getFixedDate | back to summary |
|---|---|
| public long getFixedDate(int year, int month, int dayOfMonth, BaseCalendar. | |
| getGregorianYearFromFixedDate | back to summary |
|---|---|
| pack-priv final int getGregorianYearFromFixedDate(long fixedDate) Returns the Gregorian year number of the given fixed date. | |
| getMonthLength | back to summary |
|---|---|
| public int getMonthLength(CalendarDate date) Implements abstract sun. Doc from sun. Returns the length in days of the month specified by the calendar
date. This method does not perform the normalization with the
specified calendar date. The
| |
| getMonthLength | back to summary |
|---|---|
| private int getMonthLength(int year, int month) | |
| getYearFromFixedDate | back to summary |
|---|---|
| public int getYearFromFixedDate(long fixedDate) | |
| getYearLength | back to summary |
|---|---|
| public int getYearLength(CalendarDate date) Implements abstract sun. Returns 366 if the specified date is in a leap year, or 365
otherwise This method does not perform the normalization with
the specified
| |
| isLeapYear | back to summary |
|---|---|
| protected boolean isLeapYear(CalendarDate date) Implements abstract sun.
| |
| isLeapYear | back to summary |
|---|---|
| pack-priv boolean isLeapYear(int normalizedYear) | |
| normalize | back to summary |
|---|---|
| public boolean normalize(CalendarDate date) Implements abstract sun. Doc from sun. Normalizes calendar fields in the specified
| |
| normalizeMonth | back to summary |
|---|---|
| pack-priv void normalizeMonth(CalendarDate date) | |
| validate | back to summary |
|---|---|
| public boolean validate(CalendarDate date) Implements abstract sun. Doc from sun. Checks whether the calendar fields specified by
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv long | |
| pack-priv long | |
| pack-priv int |
| Modifier and Type | Method and Description |
|---|---|
| protected long | |
| protected int | |
| public abstract int | |
| protected final boolean | |
| protected final boolean | |
| protected void | |
| public BaseCalendar. | |
| public abstract void |
| cachedFixedDateJan1 | back to summary |
|---|---|
| pack-priv long cachedFixedDateJan1 | |
| cachedFixedDateNextJan1 | back to summary |
|---|---|
| pack-priv long cachedFixedDateNextJan1 | |
| cachedYear | back to summary |
|---|---|
| pack-priv int cachedYear | |
| Date | back to summary |
|---|---|
| protected Date() | |
| Date | back to summary |
|---|---|
| protected Date(TimeZone zone) | |
| getCachedJan1 | back to summary |
|---|---|
| protected long getCachedJan1() | |
| getCachedYear | back to summary |
|---|---|
| protected int getCachedYear() | |
| getNormalizedYear | back to summary |
|---|---|
| public abstract int getNormalizedYear() | |
| hit | back to summary |
|---|---|
| protected final boolean hit(int year) | |
| hit | back to summary |
|---|---|
| protected final boolean hit(long fixedDate) | |
| setCache | back to summary |
|---|---|
| protected void setCache(int year, long jan1, int len) | |
| setNormalizedDate | back to summary |
|---|---|
| public BaseCalendar. | |
| setNormalizedYear | back to summary |
|---|---|
| public abstract void setNormalizedYear(int normalizedYear) | |