Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.joda.time.Chronology
org.joda.time.chrono.BaseChronology
org.joda.time.chrono.AssembledChronology
org.joda.time.chrono.BuddhistChronology
public final class BuddhistChronology
extends AssembledChronology
Nested Class Summary |
Nested classes/interfaces inherited from class org.joda.time.chrono.AssembledChronology | |
AssembledChronology.Fields |
Field Summary | |
static int |
|
Method Summary | |
protected void |
|
boolean |
|
static BuddhistChronology |
|
static BuddhistChronology |
|
static BuddhistChronology |
|
int |
|
String |
|
Chronology |
|
Chronology |
|
Methods inherited from class org.joda.time.chrono.AssembledChronology | |
assemble , centuries , centuryOfEra , clockhourOfDay , clockhourOfHalfday , dayOfMonth , dayOfWeek , dayOfYear , days , era , eras , getBase , getDateTimeMillis , getDateTimeMillis , getDateTimeMillis , getParam , getZone , halfdayOfDay , halfdays , hourOfDay , hourOfHalfday , hours , millis , millisOfDay , millisOfSecond , minuteOfDay , minuteOfHour , minutes , monthOfYear , months , secondOfDay , secondOfMinute , seconds , weekOfWeekyear , weeks , weekyear , weekyearOfCentury , weekyears , year , yearOfCentury , yearOfEra , years |
Methods inherited from class org.joda.time.chrono.BaseChronology | |
add , add , centuries , centuryOfEra , clockhourOfDay , clockhourOfHalfday , dayOfMonth , dayOfWeek , dayOfYear , days , era , eras , get , get , get , getDateTimeMillis , getDateTimeMillis , getDateTimeMillis , getZone , halfdayOfDay , halfdays , hourOfDay , hourOfHalfday , hours , millis , millisOfDay , millisOfSecond , minuteOfDay , minuteOfHour , minutes , monthOfYear , months , secondOfDay , secondOfMinute , seconds , set , toString , validate , weekOfWeekyear , weeks , weekyear , weekyearOfCentury , weekyears , withUTC , withZone , year , yearOfCentury , yearOfEra , years |
Methods inherited from class org.joda.time.Chronology | |
add , add , centuries , centuryOfEra , clockhourOfDay , clockhourOfHalfday , dayOfMonth , dayOfWeek , dayOfYear , days , era , eras , get , get , get , getBuddhist , getBuddhist , getBuddhistUTC , getCoptic , getCoptic , getCopticUTC , getDateTimeMillis , getDateTimeMillis , getDateTimeMillis , getGJ , getGJ , getGJUTC , getGregorian , getGregorian , getGregorianUTC , getISO , getISO , getISOUTC , getJulian , getJulian , getJulianUTC , getZone , halfdayOfDay , halfdays , hourOfDay , hourOfHalfday , hours , millis , millisOfDay , millisOfSecond , minuteOfDay , minuteOfHour , minutes , monthOfYear , months , secondOfDay , secondOfMinute , seconds , set , toString , validate , weekOfWeekyear , weeks , weekyear , weekyearOfCentury , weekyears , withUTC , withZone , year , yearOfCentury , yearOfEra , years |
public static final int BE
Constant value for 'Buddhist Era', equivalent to the value returned for AD/CE. Note that this differs from the constant in BuddhistCalendar.
- Field Value:
- 1
protected void assemble(AssembledChronology.Fields fields)
Invoked by the constructor and after deserialization to allow subclasses to define all of its supported fields. All unset fields default to unsupported instances.
- Overrides:
- assemble in interface AssembledChronology
- Parameters:
fields
- container of fields
public boolean equals(Object obj)
Checks if this chronology instance equals another.
- Parameters:
obj
- the object to compare to
- Returns:
- true if equal
- Since:
- 1.6
public static BuddhistChronology getInstance()
Standard instance of a Buddhist Chronology, that matches Sun's BuddhistCalendar class. This means that it follows the GregorianJulian calendar rules with a cutover date.
public static BuddhistChronology getInstance(DateTimeZone zone)
Standard instance of a Buddhist Chronology, that matches Sun's BuddhistCalendar class. This means that it follows the GregorianJulian calendar rules with a cutover date.
- Parameters:
zone
- the time zone to use, null is default
public static BuddhistChronology getInstanceUTC()
Standard instance of a Buddhist Chronology, that matches Sun's BuddhistCalendar class. This means that it follows the GregorianJulian calendar rules with a cutover date. The time zone of the returned instance is UTC.
public int hashCode()
A suitable hash code for the chronology.
- Returns:
- the hash code
- Since:
- 1.6
public String toString()
Gets a debugging toString.
- Overrides:
- toString in interface BaseChronology
- Returns:
- a debugging string
public Chronology withUTC()
Gets the Chronology in the UTC time zone.
- Overrides:
- withUTC in interface BaseChronology
- Returns:
- the chronology in UTC
public Chronology withZone(DateTimeZone zone)
Gets the Chronology in a specific time zone.
- Overrides:
- withZone in interface BaseChronology
- Parameters:
zone
- the zone to get the chronology in, null is default
- Returns:
- the chronology