Save This Page
Home » openjdk-7 » sun » util » calendar » [javadoc | source]
abstract public class: BaseCalendar [javadoc | source]

Direct Known Subclasses:
    JulianCalendar, Gregorian, LocalGregorianCalendar

The BaseCalendar provides basic calendar calculation functions to support the Julian, Gregorian, and Gregorian-based calendar systems.
Nested Class Summary:
abstract public static class  BaseCalendar.Date   
Field Summary
public static final  int JANUARY     
public static final  int FEBRUARY     
public static final  int MARCH     
public static final  int APRIL     
public static final  int MAY     
public static final  int JUNE     
public static final  int JULY     
public static final  int AUGUST     
public static final  int SEPTEMBER     
public static final  int OCTOBER     
public static final  int NOVEMBER     
public static final  int DECEMBER     
public static final  int SUNDAY     
public static final  int MONDAY     
public static final  int TUESDAY     
public static final  int WEDNESDAY     
public static final  int THURSDAY     
public static final  int FRIDAY     
public static final  int SATURDAY     
static final  int[] DAYS_IN_MONTH     
static final  int[] ACCUMULATED_DAYS_IN_MONTH     
static final  int[] ACCUMULATED_DAYS_IN_MONTH_LEAP     
Fields inherited from sun.util.calendar.AbstractCalendar:
Method from sun.util.calendar.BaseCalendar Summary:
getCalendarDateFromFixedDate,   getDayOfWeek,   getDayOfWeekFromFixedDate,   getDayOfYear,   getDayOfYear,   getFixedDate,   getFixedDate,   getGregorianYearFromFixedDate,   getMonthLength,   getYearFromFixedDate,   getYearLength,   getYearLengthInMonths,   isLeapYear,   isLeapYear,   normalize,   normalizeMonth,   validate
Methods from sun.util.calendar.AbstractCalendar:
getCalendarDate,   getCalendarDate,   getCalendarDate,   getCalendarDate,   getCalendarDateFromFixedDate,   getDayOfWeekDateAfter,   getDayOfWeekDateBefore,   getDayOfWeekDateOnOrBefore,   getEra,   getEras,   getFixedDate,   getNthDayOfWeek,   getTime,   getTimeOfDay,   getTimeOfDayValue,   getWeekLength,   isLeapYear,   normalizeTime,   setEra,   setEras,   setTimeOfDay,   validateTime
Methods from sun.util.calendar.CalendarSystem:
forName,   getCalendarDate,   getCalendarDate,   getCalendarDate,   getCalendarDate,   getEra,   getEras,   getGregorianCalendar,   getMonthLength,   getName,   getNthDayOfWeek,   getTime,   getWeekLength,   getYearLength,   getYearLengthInMonths,   newCalendarDate,   newCalendarDate,   normalize,   setEra,   setTimeOfDay,   validate
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.util.calendar.BaseCalendar Detail:
 public  void getCalendarDateFromFixedDate(CalendarDate date,
    long fixedDate) 
    Calculates calendar fields and store them in the specified CalendarDate.
 public int getDayOfWeek(CalendarDate date) 
    Returns the day of week of the given Gregorian date.
 public static final int getDayOfWeekFromFixedDate(long fixedDate) 
 public long getDayOfYear(CalendarDate date) 
 final long getDayOfYear(int year,
    int month,
    int dayOfMonth) 
 public long getFixedDate(CalendarDate date) 
 public long getFixedDate(int year,
    int month,
    int dayOfMonth,
    Date cache) 
 final int getGregorianYearFromFixedDate(long fixedDate) 
    Returns the Gregorian year number of the given fixed date.
 public int getMonthLength(CalendarDate date) 
 public int getYearFromFixedDate(long fixedDate) 
 public int getYearLength(CalendarDate date) 
    Returns 366 if the specified date is in a leap year, or 365 otherwise This method does not perform the normalization with the specified CalendarDate. The CalendarDate must be normalized to get a correct value.
 public int getYearLengthInMonths(CalendarDate date) 
 protected boolean isLeapYear(CalendarDate date) 
 boolean isLeapYear(int normalizedYear) 
 public boolean normalize(CalendarDate date) 
  void normalizeMonth(CalendarDate date) 
 public boolean validate(CalendarDate date)