|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.time.Chronology
org.joda.time.chrono.BaseChronology
org.joda.time.chrono.AssembledChronology
public abstract class AssembledChronology
Abstract Chronology that enables chronologies to be assembled from a container of fields.
AssembledChronology is thread-safe and immutable.
| Nested Class Summary | |
|---|---|
static class |
AssembledChronology.Fields
A container of fields used for assembling a chronology. |
| Constructor Summary | |
|---|---|
protected |
AssembledChronology(Chronology base,
Object param)
Constructor calls the assemble method, enabling subclasses to define its supported fields. |
| Method Summary | |
|---|---|
protected abstract void |
assemble(AssembledChronology.Fields fields)
Invoked by the constructor and after deserialization to allow subclasses to define all of its supported fields. |
DurationField |
centuries()
Get the centuries duration field for this chronology. |
DateTimeField |
centuryOfEra()
Get the century of era field for this chronology. |
DateTimeField |
clockhourOfDay()
Get the hour of day (offset to 1-24) field for this chronology. |
DateTimeField |
clockhourOfHalfday()
Get the hour of am/pm (offset to 1-12) field for this chronology. |
DateTimeField |
dayOfMonth()
Get the day of month field for this chronology. |
DateTimeField |
dayOfWeek()
Get the day of week field for this chronology. |
DateTimeField |
dayOfYear()
Get the day of year field for this chronology. |
DurationField |
days()
Get the days duration field for this chronology. |
DateTimeField |
era()
Get the era field for this chronology. |
DurationField |
eras()
Get the eras duration field for this chronology. |
protected Chronology |
getBase()
Returns the same base chronology as passed into the constructor. |
long |
getDateTimeMillis(int year,
int monthOfYear,
int dayOfMonth,
int millisOfDay)
Returns a datetime millisecond instant, formed from the given year, month, day, and millisecond values. |
long |
getDateTimeMillis(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond)
Returns a datetime millisecond instant, formed from the given year, month, day, hour, minute, second, and millisecond values. |
long |
getDateTimeMillis(long instant,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond)
Returns a datetime millisecond instant, from from the given instant, hour, minute, second, and millisecond values. |
protected Object |
getParam()
Returns the same param object as passed into the constructor. |
DateTimeZone |
getZone()
Returns the DateTimeZone that this Chronology operates in, or null if unspecified. |
DateTimeField |
halfdayOfDay()
Get the AM(0) PM(1) field for this chronology. |
DurationField |
halfdays()
Get the halfdays duration field for this chronology. |
DateTimeField |
hourOfDay()
Get the hour of day (0-23) field for this chronology. |
DateTimeField |
hourOfHalfday()
Get the hour of am/pm (0-11) field for this chronology. |
DurationField |
hours()
Get the hours duration field for this chronology. |
DurationField |
millis()
Get the millis duration field for this chronology. |
DateTimeField |
millisOfDay()
Get the millis of day field for this chronology. |
DateTimeField |
millisOfSecond()
Get the millis of second field for this chronology. |
DateTimeField |
minuteOfDay()
Get the minute of day field for this chronology. |
DateTimeField |
minuteOfHour()
Get the minute of hour field for this chronology. |
DurationField |
minutes()
Get the minutes duration field for this chronology. |
DateTimeField |
monthOfYear()
Get the month of year field for this chronology. |
DurationField |
months()
Get the months duration field for this chronology. |
DateTimeField |
secondOfDay()
Get the second of day field for this chronology. |
DateTimeField |
secondOfMinute()
Get the second of minute field for this chronology. |
DurationField |
seconds()
Get the seconds duration field for this chronology. |
DateTimeField |
weekOfWeekyear()
Get the week of a week based year field for this chronology. |
DurationField |
weeks()
Get the weeks duration field for this chronology. |
DateTimeField |
weekyear()
Get the year of a week based year field for this chronology. |
DateTimeField |
weekyearOfCentury()
Get the year of a week based year in a century field for this chronology. |
DurationField |
weekyears()
Get the weekyears duration field for this chronology. |
DateTimeField |
year()
Get the year field for this chronology. |
DateTimeField |
yearOfCentury()
Get the year of century field for this chronology. |
DateTimeField |
yearOfEra()
Get the year of era field for this chronology. |
DurationField |
years()
Get the years duration field for this chronology. |
| Methods inherited from class org.joda.time.chrono.BaseChronology |
|---|
add, add, get, get, get, set, toString, validate, withUTC, withZone |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AssembledChronology(Chronology base,
Object param)
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.
base - optional base chronology to copy initial fields fromparam - optional param object avalable for assemble method| Method Detail |
|---|
public DateTimeZone getZone()
BaseChronology
getZone in class BaseChronology
public long getDateTimeMillis(int year,
int monthOfYear,
int dayOfMonth,
int millisOfDay)
throws IllegalArgumentException
BaseChronologyThe default implementation calls upon separate DateTimeFields to determine the result. Subclasses are encouraged to provide a more efficient implementation.
getDateTimeMillis in class BaseChronologyyear - year to usemonthOfYear - month to usedayOfMonth - day of month to usemillisOfDay - millisecond to use
IllegalArgumentException - if the values are invalid
public long getDateTimeMillis(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond)
throws IllegalArgumentException
BaseChronologyThe default implementation calls upon separate DateTimeFields to determine the result. Subclasses are encouraged to provide a more efficient implementation.
getDateTimeMillis in class BaseChronologyyear - year to usemonthOfYear - month to usedayOfMonth - day of month to usehourOfDay - hour to useminuteOfHour - minute to usesecondOfMinute - second to usemillisOfSecond - millisecond to use
IllegalArgumentException - if the values are invalid
public long getDateTimeMillis(long instant,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond)
throws IllegalArgumentException
BaseChronologyThe default implementation calls upon separate DateTimeFields to determine the result. Subclasses are encouraged to provide a more efficient implementation.
getDateTimeMillis in class BaseChronologyinstant - instant to start fromhourOfDay - hour to useminuteOfHour - minute to usesecondOfMinute - second to usemillisOfSecond - millisecond to use
IllegalArgumentException - if the values are invalidpublic final DurationField millis()
BaseChronology
millis in class BaseChronologypublic final DateTimeField millisOfSecond()
BaseChronology
millisOfSecond in class BaseChronologypublic final DateTimeField millisOfDay()
BaseChronology
millisOfDay in class BaseChronologypublic final DurationField seconds()
BaseChronology
seconds in class BaseChronologypublic final DateTimeField secondOfMinute()
BaseChronology
secondOfMinute in class BaseChronologypublic final DateTimeField secondOfDay()
BaseChronology
secondOfDay in class BaseChronologypublic final DurationField minutes()
BaseChronology
minutes in class BaseChronologypublic final DateTimeField minuteOfHour()
BaseChronology
minuteOfHour in class BaseChronologypublic final DateTimeField minuteOfDay()
BaseChronology
minuteOfDay in class BaseChronologypublic final DurationField hours()
BaseChronology
hours in class BaseChronologypublic final DateTimeField hourOfDay()
BaseChronology
hourOfDay in class BaseChronologypublic final DateTimeField clockhourOfDay()
BaseChronology
clockhourOfDay in class BaseChronologypublic final DurationField halfdays()
BaseChronology
halfdays in class BaseChronologypublic final DateTimeField hourOfHalfday()
BaseChronology
hourOfHalfday in class BaseChronologypublic final DateTimeField clockhourOfHalfday()
BaseChronology
clockhourOfHalfday in class BaseChronologypublic final DateTimeField halfdayOfDay()
BaseChronology
halfdayOfDay in class BaseChronologypublic final DurationField days()
BaseChronology
days in class BaseChronologypublic final DateTimeField dayOfWeek()
BaseChronologyDayOfWeek values are defined in
DateTimeConstants.
They use the ISO definitions, where 1 is Monday and 7 is Sunday.
dayOfWeek in class BaseChronologypublic final DateTimeField dayOfMonth()
BaseChronology
dayOfMonth in class BaseChronologypublic final DateTimeField dayOfYear()
BaseChronology
dayOfYear in class BaseChronologypublic final DurationField weeks()
BaseChronology
weeks in class BaseChronologypublic final DateTimeField weekOfWeekyear()
BaseChronology
weekOfWeekyear in class BaseChronologypublic final DurationField weekyears()
BaseChronology
weekyears in class BaseChronologypublic final DateTimeField weekyear()
BaseChronology
weekyear in class BaseChronologypublic final DateTimeField weekyearOfCentury()
BaseChronology
weekyearOfCentury in class BaseChronologypublic final DurationField months()
BaseChronology
months in class BaseChronologypublic final DateTimeField monthOfYear()
BaseChronology
monthOfYear in class BaseChronologypublic final DurationField years()
BaseChronology
years in class BaseChronologypublic final DateTimeField year()
BaseChronology
year in class BaseChronologypublic final DateTimeField yearOfEra()
BaseChronology
yearOfEra in class BaseChronologypublic final DateTimeField yearOfCentury()
BaseChronology
yearOfCentury in class BaseChronologypublic final DurationField centuries()
BaseChronology
centuries in class BaseChronologypublic final DateTimeField centuryOfEra()
BaseChronology
centuryOfEra in class BaseChronologypublic final DurationField eras()
BaseChronology
eras in class BaseChronologypublic final DateTimeField era()
BaseChronology
era in class BaseChronologyprotected abstract void assemble(AssembledChronology.Fields fields)
fields - container of fieldsprotected final Chronology getBase()
protected final Object getParam()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||