Save This Page
Home » openjdk-7 » sun » util » [javadoc | source]
sun.util
public class: BuddhistCalendar [javadoc | source]
java.lang.Object
   java.util.Calendar
      java.util.GregorianCalendar
         sun.util.BuddhistCalendar

All Implemented Interfaces:
    Comparable, java$io$Serializable, Cloneable

Fields inherited from java.util.GregorianCalendar:
BC,  BCE,  AD,  CE,  MONTH_LENGTH,  LEAP_MONTH_LENGTH,  MIN_VALUES,  LEAST_MAX_VALUES,  MAX_VALUES,  serialVersionUID,  DEFAULT_GREGORIAN_CUTOVER,  $assertionsDisabled
Fields inherited from java.util.Calendar:
ERA,  YEAR,  MONTH,  WEEK_OF_YEAR,  WEEK_OF_MONTH,  DATE,  DAY_OF_MONTH,  DAY_OF_YEAR,  DAY_OF_WEEK,  DAY_OF_WEEK_IN_MONTH,  AM_PM,  HOUR,  HOUR_OF_DAY,  MINUTE,  SECOND,  MILLISECOND,  ZONE_OFFSET,  DST_OFFSET,  FIELD_COUNT,  SUNDAY,  MONDAY,  TUESDAY,  WEDNESDAY,  THURSDAY,  FRIDAY,  SATURDAY,  JANUARY,  FEBRUARY,  MARCH,  APRIL,  MAY,  JUNE,  JULY,  AUGUST,  SEPTEMBER,  OCTOBER,  NOVEMBER,  DECEMBER,  UNDECIMBER,  AM,  PM,  ALL_STYLES,  SHORT,  LONG,  fields,  isSet,  time,  isTimeSet,  areFieldsSet,  areAllFieldsSet,  ALL_FIELDS,  currentSerialVersion,  serialVersionUID,  ERA_MASK,  YEAR_MASK,  MONTH_MASK,  WEEK_OF_YEAR_MASK,  WEEK_OF_MONTH_MASK,  DAY_OF_MONTH_MASK,  DATE_MASK,  DAY_OF_YEAR_MASK,  DAY_OF_WEEK_MASK,  DAY_OF_WEEK_IN_MONTH_MASK,  AM_PM_MASK,  HOUR_MASK,  HOUR_OF_DAY_MASK,  MINUTE_MASK,  SECOND_MASK,  MILLISECOND_MASK,  ZONE_OFFSET_MASK,  DST_OFFSET_MASK,  $assertionsDisabled
Constructor:
 public BuddhistCalendar() 
 public BuddhistCalendar(TimeZone zone) 
    Constructs a BuddhistCalendar based on the current time in the given time zone with the default locale.
    Parameters:
    zone - the given time zone.
 public BuddhistCalendar(Locale aLocale) 
    Constructs a BuddhistCalendar based on the current time in the default time zone with the given locale.
    Parameters:
    aLocale - the given locale.
 public BuddhistCalendar(TimeZone zone,
    Locale aLocale) 
    Constructs a BuddhistCalendar based on the current time in the given time zone with the given locale.
    Parameters:
    zone - the given time zone.
    aLocale - the given locale.
Method from sun.util.BuddhistCalendar Summary:
add,   equals,   get,   getActualMaximum,   getDisplayName,   getDisplayNames,   hashCode,   roll,   set,   toString
Methods from java.util.GregorianCalendar:
add,   clone,   computeFields,   computeTime,   equals,   getActualMaximum,   getActualMinimum,   getGreatestMinimum,   getGregorianChange,   getLeastMaximum,   getMaximum,   getMinimum,   getTimeZone,   hashCode,   isLeapYear,   roll,   roll,   setGregorianChange,   setTimeZone
Methods from java.util.Calendar:
add,   after,   before,   checkDisplayNameParams,   clear,   clear,   clone,   compareTo,   compareTo,   complete,   computeFields,   computeTime,   equals,   get,   getActualMaximum,   getActualMinimum,   getAvailableLocales,   getDisplayName,   getDisplayNames,   getFieldName,   getFirstDayOfWeek,   getGreatestMinimum,   getInstance,   getInstance,   getInstance,   getInstance,   getLeastMaximum,   getMaximum,   getMinimalDaysInFirstWeek,   getMinimum,   getSetStateFields,   getTime,   getTimeInMillis,   getTimeZone,   getZone,   hashCode,   internalGet,   internalSet,   isExternallySet,   isFieldSet,   isFullyNormalized,   isLenient,   isPartiallyNormalized,   isSet,   roll,   roll,   selectFields,   set,   set,   set,   set,   setFieldsComputed,   setFieldsNormalized,   setFirstDayOfWeek,   setLenient,   setMinimalDaysInFirstWeek,   setTime,   setTimeInMillis,   setTimeZone,   setUnnormalized,   setZoneShared,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.util.BuddhistCalendar Detail:
 public  void add(int field,
    int amount) 
    Adds the specified (signed) amount of time to the given time field.
 public boolean equals(Object obj) 
    Compares this BuddhistCalendar to an object reference.
 public int get(int field) 
    Gets the value for a given time field.
 public int getActualMaximum(int field) 
    Returns the maximum value that this field could have, given the current date. For example, with the date "Feb 3, 2540" and the DAY_OF_MONTH field, the actual maximum is 28; for "Feb 3, 2539" it is 29.
 public String getDisplayName(int field,
    int style,
    Locale locale) 
 public Map<String, Integer> getDisplayNames(int field,
    int style,
    Locale locale) 
 public int hashCode() 
    Override hashCode. Generates the hash code for the BuddhistCalendar object
 public  void roll(int field,
    int amount) 
    Add to field a signed amount without changing larger fields. A negative roll amount means to subtract from field without changing larger fields.
 public  void set(int field,
    int value) 
    Sets the time field with the given value.
 public String toString()