| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final long | |
| private transient int |
| Access | Constructor and Description |
|---|---|
| public | BuddhistCalendar()
Constructs a default BuddhistCalendar using the current time in the default time zone with the default locale. |
| public | BuddhistCalendar(TimeZone
the given time zone. zone)Constructs a BuddhistCalendar based on the current time in the given time zone with the default locale. |
| public | BuddhistCalendar(Locale
the given locale. aLocale)Constructs a BuddhistCalendar based on the current time in the default time zone with the given locale. |
| public | BuddhistCalendar(TimeZone
the given time zone. zone, Locale the given locale. aLocale)Constructs a BuddhistCalendar based on the current time in the given time zone with the given locale. |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int
the time field. field, int the amount of date or time to be added to the field. amount)Overrides java. Adds the specified (signed) amount of time to the given time field. |
| public boolean | Returns: true if this object is equal toobj; false otherwisethe object reference with which to compare obj)Overrides java. Compares this BuddhistCalendar to an object reference. |
| public int | Returns: the value for the given time field.the given time field. field)Overrides java. Gets the value for a given time field. |
| public int | Returns: the maximum of the given field for the current date of this Calendarthe field to determine the maximum of field)Overrides java. Returns the maximum value that this field could have, given the current date. |
| public String | getCalendarType()
Overrides java. Returns |
| public String | getDisplayName(int field, int style, Locale locale)
Overrides java. Returns the string representation of the calendar
|
| public Map | getDisplayNames(int field, int style, Locale locale)
Overrides java. Returns a |
| public int | |
| private void | readObject(ObjectInputStream stream)
Hides java. Updates internal state. |
| public void | roll(int
the time field. field, int the signed amount to add to amount)field.Overrides java. Add to field a signed amount without changing larger fields. |
| public void | set(int
the given time field. field, int the value to be set for the given time field. value)Overrides java. Sets the time field with the given value. |
| public String |
| BUDDHIST_YEAR_OFFSET | back to summary |
|---|---|
| private static final int BUDDHIST_YEAR_OFFSET | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| yearOffset | back to summary |
|---|---|
| private transient int yearOffset | |
| BuddhistCalendar | back to summary |
|---|---|
| public BuddhistCalendar() Constructs a default BuddhistCalendar using the current time in the default time zone with the default locale. | |
| BuddhistCalendar | back to summary |
|---|---|
| public BuddhistCalendar(TimeZone zone) Constructs a BuddhistCalendar based on the current time in the given time zone with the default locale.
| |
| BuddhistCalendar | back to summary |
|---|---|
| public BuddhistCalendar(Locale aLocale) Constructs a BuddhistCalendar based on the current time in the default time zone with the given locale.
| |
| BuddhistCalendar | back to summary |
|---|---|
| public BuddhistCalendar(TimeZone zone, Locale aLocale) Constructs a BuddhistCalendar based on the current time in the given time zone with the given locale. | |
| add | back to summary |
|---|---|
| public void add(int field, int amount) Overrides java. Adds the specified (signed) amount of time to the given time field.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Compares this BuddhistCalendar to an object reference. | |
| get | back to summary |
|---|---|
| public int get(int field) Overrides java. Gets the value for a given time field.
| |
| getActualMaximum | back to summary |
|---|---|
| public int getActualMaximum(int field) Overrides java. Returns the maximum value that this field could have, given the
current date. For example, with the date "Feb 3, 2540" and the
| |
| getCalendarType | back to summary |
|---|---|
| public String getCalendarType() Overrides java. Returns
| |
| getDisplayName | back to summary |
|---|---|
| public String getDisplayName(int field, int style, Locale locale) Overrides java. Doc from java. Returns the string representation of the calendar
For example, if this The default implementation supports the calendar fields for
which a If there is no string representation of the
| |
| getDisplayNames | back to summary |
|---|---|
| public Map Overrides java. Doc from java. Returns a Narrow names may not be unique due to use of single characters,
such as "S" for Sunday and Saturday. In that case narrow names are not
included in the returned The values of other calendar fields may be taken into
account to determine a set of display names. For example, if
this The default implementation supports display names contained in
a Unlike
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Override hashCode. Generates the hash code for the BuddhistCalendar object
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException Hides java. Doc from java. Updates internal state.
| |
| roll | back to summary |
|---|---|
| public void roll(int field, int amount) Overrides java. Add to field a signed amount without changing larger fields. A negative roll amount means to subtract from field without changing larger fields.
| |
| set | back to summary |
|---|---|
| public void set(int field, int value) Overrides java. Sets the time field with the given value.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Return a string representation of this calendar. This method
is intended to be used only for debugging purposes, and the
format of the returned string may vary between implementations.
The returned string may be empty but may not be
| |