private static class DateTimeFieldType.StandardDateTimeFieldType extends DateTimeFieldType
| Modifier and Type | Field and Description |
|---|---|
private byte |
iOrdinal
The ordinal of the standard field type, for switch statements
|
private DurationFieldType |
iRangeType
The range duration of the field.
|
private DurationFieldType |
iUnitType
The unit duration of the field.
|
private static long |
serialVersionUID
Serialization version
|
CENTURY_OF_ERA, CLOCKHOUR_OF_DAY, CLOCKHOUR_OF_HALFDAY, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_YEAR, ERA, HALFDAY_OF_DAY, HOUR_OF_DAY, HOUR_OF_HALFDAY, MILLIS_OF_DAY, MILLIS_OF_SECOND, MINUTE_OF_DAY, MINUTE_OF_HOUR, MONTH_OF_YEAR, SECOND_OF_DAY, SECOND_OF_MINUTE, WEEK_OF_WEEKYEAR, WEEKYEAR, WEEKYEAR_OF_CENTURY, YEAR, YEAR_OF_CENTURY, YEAR_OF_ERA| Constructor and Description |
|---|
StandardDateTimeFieldType(java.lang.String name,
byte ordinal,
DurationFieldType unitType,
DurationFieldType rangeType)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
DurationFieldType |
getDurationType()
Get the duration unit of the field.
|
DateTimeField |
getField(Chronology chronology)
Gets a suitable field for this type from the given Chronology.
|
DurationFieldType |
getRangeDurationType()
Get the duration range of the field.
|
int |
hashCode() |
private java.lang.Object |
readResolve()
Ensure a singleton is returned.
|
centuryOfEra, clockhourOfDay, clockhourOfHalfday, dayOfMonth, dayOfWeek, dayOfYear, era, getName, halfdayOfDay, hourOfDay, hourOfHalfday, isSupported, millisOfDay, millisOfSecond, minuteOfDay, minuteOfHour, monthOfYear, secondOfDay, secondOfMinute, toString, weekOfWeekyear, weekyear, weekyearOfCentury, year, yearOfCentury, yearOfEraprivate static final long serialVersionUID
private final byte iOrdinal
private final transient DurationFieldType iUnitType
private final transient DurationFieldType iRangeType
StandardDateTimeFieldType(java.lang.String name,
byte ordinal,
DurationFieldType unitType,
DurationFieldType rangeType)
name - the name to useordinal - the byte value for the oridinal indexunitType - the unit duration typerangeType - the range duration typepublic DurationFieldType getDurationType()
DateTimeFieldTypegetDurationType in class DateTimeFieldTypepublic DurationFieldType getRangeDurationType()
DateTimeFieldTypegetRangeDurationType in class DateTimeFieldTypepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic DateTimeField getField(Chronology chronology)
DateTimeFieldTypegetField in class DateTimeFieldTypechronology - the chronology to use, null means ISOChronology in default zoneprivate java.lang.Object readResolve()