public abstract class AssembledChronology extends BaseChronology
AssembledChronology is thread-safe and immutable.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AssembledChronology.Fields
A container of fields used for assembling a chronology.
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
AssembledChronology(Chronology base,
Object param)
Constructor calls the assemble method, enabling subclasses to define its
supported fields.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
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 methodpublic DateTimeZone getZone()
BaseChronologygetZone 在类中 BaseChronologypublic 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 在类中 BaseChronologyyear - year to usemonthOfYear - month to usedayOfMonth - day of month to usemillisOfDay - millisecond to useIllegalArgumentException - if the values are invalidpublic 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 在类中 BaseChronologyyear - year to usemonthOfYear - month to usedayOfMonth - day of month to usehourOfDay - hour to useminuteOfHour - minute to usesecondOfMinute - second to usemillisOfSecond - millisecond to useIllegalArgumentException - if the values are invalidpublic 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 在类中 BaseChronologyinstant - instant to start fromhourOfDay - hour to useminuteOfHour - minute to usesecondOfMinute - second to usemillisOfSecond - millisecond to useIllegalArgumentException - if the values are invalidpublic final DurationField millis()
BaseChronologymillis 在类中 BaseChronologypublic final DateTimeField millisOfSecond()
BaseChronologymillisOfSecond 在类中 BaseChronologypublic final DateTimeField millisOfDay()
BaseChronologymillisOfDay 在类中 BaseChronologypublic final DurationField seconds()
BaseChronologyseconds 在类中 BaseChronologypublic final DateTimeField secondOfMinute()
BaseChronologysecondOfMinute 在类中 BaseChronologypublic final DateTimeField secondOfDay()
BaseChronologysecondOfDay 在类中 BaseChronologypublic final DurationField minutes()
BaseChronologyminutes 在类中 BaseChronologypublic final DateTimeField minuteOfHour()
BaseChronologyminuteOfHour 在类中 BaseChronologypublic final DateTimeField minuteOfDay()
BaseChronologyminuteOfDay 在类中 BaseChronologypublic final DurationField hours()
BaseChronologyhours 在类中 BaseChronologypublic final DateTimeField hourOfDay()
BaseChronologyhourOfDay 在类中 BaseChronologypublic final DateTimeField clockhourOfDay()
BaseChronologyclockhourOfDay 在类中 BaseChronologypublic final DurationField halfdays()
BaseChronologyhalfdays 在类中 BaseChronologypublic final DateTimeField hourOfHalfday()
BaseChronologyhourOfHalfday 在类中 BaseChronologypublic final DateTimeField clockhourOfHalfday()
BaseChronologyclockhourOfHalfday 在类中 BaseChronologypublic final DateTimeField halfdayOfDay()
BaseChronologyhalfdayOfDay 在类中 BaseChronologypublic final DurationField days()
BaseChronologydays 在类中 BaseChronologypublic final DateTimeField dayOfWeek()
BaseChronology
DayOfWeek values are defined in
DateTimeConstants.
They use the ISO definitions, where 1 is Monday and 7 is Sunday.
dayOfWeek 在类中 BaseChronologypublic final DateTimeField dayOfMonth()
BaseChronologydayOfMonth 在类中 BaseChronologypublic final DateTimeField dayOfYear()
BaseChronologydayOfYear 在类中 BaseChronologypublic final DurationField weeks()
BaseChronologyweeks 在类中 BaseChronologypublic final DateTimeField weekOfWeekyear()
BaseChronologyweekOfWeekyear 在类中 BaseChronologypublic final DurationField weekyears()
BaseChronologyweekyears 在类中 BaseChronologypublic final DateTimeField weekyear()
BaseChronologyweekyear 在类中 BaseChronologypublic final DateTimeField weekyearOfCentury()
BaseChronologyweekyearOfCentury 在类中 BaseChronologypublic final DurationField months()
BaseChronologymonths 在类中 BaseChronologypublic final DateTimeField monthOfYear()
BaseChronologymonthOfYear 在类中 BaseChronologypublic final DurationField years()
BaseChronologyyears 在类中 BaseChronologypublic final DateTimeField year()
BaseChronologyyear 在类中 BaseChronologypublic final DateTimeField yearOfEra()
BaseChronologyyearOfEra 在类中 BaseChronologypublic final DateTimeField yearOfCentury()
BaseChronologyyearOfCentury 在类中 BaseChronologypublic final DurationField centuries()
BaseChronologycenturies 在类中 BaseChronologypublic final DateTimeField centuryOfEra()
BaseChronologycenturyOfEra 在类中 BaseChronologypublic final DurationField eras()
BaseChronologyeras 在类中 BaseChronologypublic final DateTimeField era()
BaseChronologyera 在类中 BaseChronologyprotected abstract void assemble(AssembledChronology.Fields fields)
fields - container of fieldsprotected final Chronology getBase()
protected final Object getParam()
Copyright © 2020. All rights reserved.