|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Calendar
java.util.GregorianCalendar
sun.util.BuddhistCalendar
public class BuddhistCalendar
| Field Summary |
|---|
| Fields inherited from class java.util.GregorianCalendar |
|---|
AD, BC |
| Fields inherited from class java.util.Calendar |
|---|
AM, AM_PM, APRIL, areFieldsSet, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, fields, FRIDAY, HOUR, HOUR_OF_DAY, isSet, isTimeSet, JANUARY, JULY, JUNE, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SUNDAY, THURSDAY, time, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, ZONE_OFFSET |
| Constructor Summary | |
|---|---|
BuddhistCalendar()
Constructs a default BuddhistCalendar using the current time in the default time zone with the default locale. |
|
BuddhistCalendar(Locale aLocale)
Constructs a BuddhistCalendar based on the current time in the default time zone with the given locale. |
|
BuddhistCalendar(TimeZone zone)
Constructs a BuddhistCalendar based on the current time in the given time zone with the default locale. |
|
BuddhistCalendar(TimeZone zone,
Locale aLocale)
Constructs a BuddhistCalendar based on the current time in the given time zone with the given locale. |
|
| Method Summary | |
|---|---|
void |
add(int field,
int amount)
Adds the specified (signed) amount of time to the given time field. |
boolean |
equals(Object obj)
Compares this BuddhistCalendar to an object reference. |
int |
get(int field)
Gets the value for a given time field. |
int |
hashCode()
Override hashCode. |
void |
roll(int field,
int amount)
Add to field a signed amount without changing larger fields. |
void |
set(int field,
int value)
Sets the time field with the given value. |
| Methods inherited from class java.util.GregorianCalendar |
|---|
computeFields, computeTime, getActualMaximum, getActualMinimum, getGreatestMinimum, getGregorianChange, getLeastMaximum, getMaximum, getMinimum, isLeapYear, roll, setGregorianChange |
| Methods inherited from class java.util.Calendar |
|---|
after, before, clear, clear, clone, complete, getAvailableLocales, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, getTimeZone, internalGet, isLenient, isSet, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setTime, setTimeInMillis, setTimeZone, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BuddhistCalendar()
public BuddhistCalendar(TimeZone zone)
zone - the given time zone.public BuddhistCalendar(Locale aLocale)
aLocale - the given locale.
public BuddhistCalendar(TimeZone zone,
Locale aLocale)
zone - the given time zone.aLocale - the given locale.| Method Detail |
|---|
public boolean equals(Object obj)
equals in class GregorianCalendarobj - the object reference with which to compare
obj; false otherwiseObject.hashCode(),
Hashtablepublic int hashCode()
hashCode in class GregorianCalendarObject.equals(java.lang.Object),
Hashtablepublic int get(int field)
get in class Calendarfield - the given time field.
public void set(int field,
int value)
set in class Calendarfield - the given time field.value - the value to be set for the given time field.
public void add(int field,
int amount)
add in class GregorianCalendarfield - the time field.amount - the amount of date or time to be added to the field.
public void roll(int field,
int amount)
roll in class GregorianCalendarfield - the time field.amount - the signed amount to add to field.GregorianCalendar.add(int, int),
Calendar.set(int, int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||