| |
|
| java.lang.Object java.util.Calendar java.util.GregorianCalendar sun.util.BuddhistCalendar
Constructor Summary | |
public | BuddhistCalendar() Constructs a default BuddhistCalendar using the current time
in the default time zone with the default locale. | public | BuddhistCalendar(TimeZone zone) Constructs a BuddhistCalendar based on the current time
in the given time zone with the default locale. | public | BuddhistCalendar(Locale aLocale) Constructs a BuddhistCalendar based on the current time
in the default time zone with 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. |
Method Summary | |
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.
Parameters: field - the given time field. | public int | hashCode() Override hashCode. | public void | roll(int field, int amount) Add to field a signed amount without changing larger fields. | public void | set(int field, int value) Sets the time field with the given value. |
serialVersionUID | final static long serialVersionUID(Code) | | |
BuddhistCalendar | public BuddhistCalendar()(Code) | | Constructs a default BuddhistCalendar using the current time
in the default time zone with the default locale.
|
BuddhistCalendar | public BuddhistCalendar(TimeZone zone)(Code) | | Constructs a BuddhistCalendar based on the current time
in the given time zone with the default locale.
Parameters: zone - the given time zone. |
BuddhistCalendar | public BuddhistCalendar(Locale aLocale)(Code) | | Constructs a BuddhistCalendar based on the current time
in the default time zone with the given locale.
Parameters: aLocale - the given locale. |
BuddhistCalendar | public BuddhistCalendar(TimeZone zone, Locale aLocale)(Code) | | Constructs a BuddhistCalendar based on the current time
in the given time zone with the given locale.
Parameters: zone - the given time zone. Parameters: aLocale - the given locale. |
add | public void add(int field, int amount)(Code) | | Adds the specified (signed) amount of time to the given time field.
Parameters: field - the time field. Parameters: amount - the amount of date or time to be added to the field. |
equals | public boolean equals(Object obj)(Code) | | Compares this BuddhistCalendar to an object reference.
Parameters: obj - the object reference with which to compare true if this object is equal to obj ; false otherwise |
get | public int get(int field)(Code) | | Gets the value for a given time field.
Parameters: field - the given time field. the value for the given time field. |
hashCode | public int hashCode()(Code) | | Override hashCode.
Generates the hash code for the BuddhistCalendar object
|
roll | public void roll(int field, int amount)(Code) | | Add to field a signed amount without changing larger fields.
A negative roll amount means to subtract from field without changing
larger fields.
Parameters: field - the time field. Parameters: amount - the signed amount to add to field . |
set | public void set(int field, int value)(Code) | | Sets the time field with the given value.
Parameters: field - the given time field. Parameters: value - the value to be set for the given time field. |
|
|
|