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
public abstract class AssembledChronology
extends BaseChronology
Nested Class Summary | |
static class |
|
Constructor Summary | |
|
Method Summary | |
protected abstract void |
|
DurationField |
|
DateTimeField |
|
DateTimeField |
|
DateTimeField |
|
DateTimeField |
|
DateTimeField |
|
DateTimeField |
|
DurationField |
|
DateTimeField |
|
DurationField |
|
protected Chronology |
|
long |
|
long |
|
long |
|
protected Object |
|
DateTimeZone |
|
DateTimeField |
|
DurationField |
|
DateTimeField |
|
DateTimeField |
|
DurationField |
|
DurationField |
|
DateTimeField |
|
DateTimeField |
|
DateTimeField |
|
DateTimeField |
|
DurationField |
|
DateTimeField |
|
DurationField |
|
DateTimeField |
|
DateTimeField |
|
DurationField |
|
DateTimeField |
|
DurationField |
|
DateTimeField |
|
DateTimeField |
|
DurationField |
|
DateTimeField |
|
DateTimeField |
|
DateTimeField |
|
DurationField |
|
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 |
protected AssembledChronology(Chronology base, Object param)
Constructor calls the assemble method, enabling subclasses to define its supported fields. If a base chronology is supplied, the field set initially contains references to each base chronology field. Other methods in this class will delegate to the base chronology, if it can be determined that the base chronology will produce the same results as AbstractChronology.
- Parameters:
base
- optional base chronology to copy initial fields fromparam
- optional param object avalable for assemble method
protected abstract 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.
- Parameters:
fields
- container of fields
public final DurationField centuries()
Get the centuries duration field for this chronology.
- Overrides:
- centuries in interface BaseChronology
- Returns:
- DurationField or UnsupportedDurationField if unsupported
public final DateTimeField centuryOfEra()
Get the century of era field for this chronology.
- Overrides:
- centuryOfEra in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DateTimeField clockhourOfDay()
Get the hour of day (offset to 1-24) field for this chronology.
- Overrides:
- clockhourOfDay in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DateTimeField clockhourOfHalfday()
Get the hour of am/pm (offset to 1-12) field for this chronology.
- Overrides:
- clockhourOfHalfday in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DateTimeField dayOfMonth()
Get the day of month field for this chronology.
- Overrides:
- dayOfMonth in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DateTimeField dayOfWeek()
Get the day of week field for this chronology. DayOfWeek values are defined inDateTimeConstants
. They use the ISO definitions, where 1 is Monday and 7 is Sunday.
- Overrides:
- dayOfWeek in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DateTimeField dayOfYear()
Get the day of year field for this chronology.
- Overrides:
- dayOfYear in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DurationField days()
Get the days duration field for this chronology.
- Overrides:
- days in interface BaseChronology
- Returns:
- DurationField or UnsupportedDurationField if unsupported
public final DateTimeField era()
Get the era field for this chronology.
- Overrides:
- era in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DurationField eras()
Get the eras duration field for this chronology.
- Overrides:
- eras in interface BaseChronology
- Returns:
- DurationField or UnsupportedDurationField if unsupported
protected final Chronology getBase()
Returns the same base chronology as passed into the constructor.
public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int millisOfDay) throws IllegalArgumentException
Returns a datetime millisecond instant, formed from the given year, month, day, and millisecond values. The set of given values must refer to a valid datetime, or else an IllegalArgumentException is thrown. The default implementation calls upon separate DateTimeFields to determine the result. Subclasses are encouraged to provide a more efficient implementation.
- Overrides:
- getDateTimeMillis in interface BaseChronology
- Parameters:
year
- year to usemonthOfYear
- month to usedayOfMonth
- day of month to usemillisOfDay
- millisecond to use
- Returns:
- millisecond instant from 1970-01-01T00:00:00Z
public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) throws IllegalArgumentException
Returns a datetime millisecond instant, formed from the given year, month, day, hour, minute, second, and millisecond values. The set of given values must refer to a valid datetime, or else an IllegalArgumentException is thrown. The default implementation calls upon separate DateTimeFields to determine the result. Subclasses are encouraged to provide a more efficient implementation.
- Overrides:
- getDateTimeMillis in interface BaseChronology
- Parameters:
year
- year to usemonthOfYear
- month to usedayOfMonth
- day of month to usehourOfDay
- hour to useminuteOfHour
- minute to usesecondOfMinute
- second to usemillisOfSecond
- millisecond to use
- Returns:
- millisecond instant from 1970-01-01T00:00:00Z
public long getDateTimeMillis(long instant, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) throws IllegalArgumentException
Returns a datetime millisecond instant, from from the given instant, hour, minute, second, and millisecond values. The set of given values must refer to a valid datetime, or else an IllegalArgumentException is thrown. The default implementation calls upon separate DateTimeFields to determine the result. Subclasses are encouraged to provide a more efficient implementation.
- Overrides:
- getDateTimeMillis in interface BaseChronology
- Parameters:
instant
- instant to start fromhourOfDay
- hour to useminuteOfHour
- minute to usesecondOfMinute
- second to usemillisOfSecond
- millisecond to use
- Returns:
- millisecond instant from 1970-01-01T00:00:00Z
protected final Object getParam()
Returns the same param object as passed into the constructor.
public DateTimeZone getZone()
Returns the DateTimeZone that this Chronology operates in, or null if unspecified.
- Overrides:
- getZone in interface BaseChronology
- Returns:
- DateTimeZone null if unspecified
public final DateTimeField halfdayOfDay()
Get the AM(0) PM(1) field for this chronology.
- Overrides:
- halfdayOfDay in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DurationField halfdays()
Get the halfdays duration field for this chronology.
- Overrides:
- halfdays in interface BaseChronology
- Returns:
- DurationField or UnsupportedDurationField if unsupported
public final DateTimeField hourOfDay()
Get the hour of day (0-23) field for this chronology.
- Overrides:
- hourOfDay in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DateTimeField hourOfHalfday()
Get the hour of am/pm (0-11) field for this chronology.
- Overrides:
- hourOfHalfday in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DurationField hours()
Get the hours duration field for this chronology.
- Overrides:
- hours in interface BaseChronology
- Returns:
- DurationField or UnsupportedDurationField if unsupported
public final DurationField millis()
Get the millis duration field for this chronology.
- Overrides:
- millis in interface BaseChronology
- Returns:
- DurationField or UnsupportedDurationField if unsupported
public final DateTimeField millisOfDay()
Get the millis of day field for this chronology.
- Overrides:
- millisOfDay in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DateTimeField millisOfSecond()
Get the millis of second field for this chronology.
- Overrides:
- millisOfSecond in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DateTimeField minuteOfDay()
Get the minute of day field for this chronology.
- Overrides:
- minuteOfDay in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DateTimeField minuteOfHour()
Get the minute of hour field for this chronology.
- Overrides:
- minuteOfHour in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DurationField minutes()
Get the minutes duration field for this chronology.
- Overrides:
- minutes in interface BaseChronology
- Returns:
- DurationField or UnsupportedDurationField if unsupported
public final DateTimeField monthOfYear()
Get the month of year field for this chronology.
- Overrides:
- monthOfYear in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DurationField months()
Get the months duration field for this chronology.
- Overrides:
- months in interface BaseChronology
- Returns:
- DurationField or UnsupportedDurationField if unsupported
public final DateTimeField secondOfDay()
Get the second of day field for this chronology.
- Overrides:
- secondOfDay in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DateTimeField secondOfMinute()
Get the second of minute field for this chronology.
- Overrides:
- secondOfMinute in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DurationField seconds()
Get the seconds duration field for this chronology.
- Overrides:
- seconds in interface BaseChronology
- Returns:
- DurationField or UnsupportedDurationField if unsupported
public final DateTimeField weekOfWeekyear()
Get the week of a week based year field for this chronology.
- Overrides:
- weekOfWeekyear in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DurationField weeks()
Get the weeks duration field for this chronology.
- Overrides:
- weeks in interface BaseChronology
- Returns:
- DurationField or UnsupportedDurationField if unsupported
public final DateTimeField weekyear()
Get the year of a week based year field for this chronology.
- Overrides:
- weekyear in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DateTimeField weekyearOfCentury()
Get the year of a week based year in a century field for this chronology.
- Overrides:
- weekyearOfCentury in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DurationField weekyears()
Get the weekyears duration field for this chronology.
- Overrides:
- weekyears in interface BaseChronology
- Returns:
- DurationField or UnsupportedDurationField if unsupported
public final DateTimeField year()
Get the year field for this chronology.
- Overrides:
- year in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DateTimeField yearOfCentury()
Get the year of century field for this chronology.
- Overrides:
- yearOfCentury in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DateTimeField yearOfEra()
Get the year of era field for this chronology.
- Overrides:
- yearOfEra in interface BaseChronology
- Returns:
- DateTimeField or UnsupportedDateTimeField if unsupported
public final DurationField years()
Get the years duration field for this chronology.
- Overrides:
- years in interface BaseChronology
- Returns:
- DurationField or UnsupportedDurationField if unsupported