private static class DurationFieldType.StandardDurationFieldType extends DurationFieldType
Modifier and Type | Field and Description |
---|---|
private byte |
iOrdinal
The ordinal of the standard field type, for switch statements
|
private static long |
serialVersionUID
Serialization version
|
CENTURIES, CENTURIES_TYPE, DAYS, DAYS_TYPE, ERAS, ERAS_TYPE, HALFDAYS, HALFDAYS_TYPE, HOURS, HOURS_TYPE, MILLIS, MILLIS_TYPE, MINUTES, MINUTES_TYPE, MONTHS, MONTHS_TYPE, SECONDS, SECONDS_TYPE, WEEKS, WEEKS_TYPE, WEEKYEARS, WEEKYEARS_TYPE, YEARS, YEARS_TYPE
Constructor and Description |
---|
StandardDurationFieldType(java.lang.String name,
byte ordinal)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
DurationField |
getField(Chronology chronology)
Gets a suitable field for this type from the given Chronology.
|
int |
hashCode() |
private java.lang.Object |
readResolve()
Ensure a singleton is returned.
|
private static final long serialVersionUID
private final byte iOrdinal
StandardDurationFieldType(java.lang.String name, byte ordinal)
name
- the name to usepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DurationField getField(Chronology chronology)
DurationFieldType
getField
in class DurationFieldType
chronology
- the chronology to use, null means ISOChronology in default zoneprivate java.lang.Object readResolve()