java.lang.Object | |
↳ | org.joda.time.DurationFieldType |
Identifies a duration field, such as years or minutes, in a chronology-neutral way.
A duration field type defines the type of the field, such as hours.
If does not directly enable any calculations, however it does provide a
getField(Chronology)
method that returns the actual calculation engine
for a particular chronology.
Instances of DurationFieldType
are singletons.
They can be compared using ==
.
If required, you can create your own field, for example a quarters.
You must create a subclass of DurationFieldType
that defines the field type.
This class returns the actual calculation engine from getField(Chronology)
.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the centuries field type.
| |||||||||||
Get the days field type.
| |||||||||||
Get the eras field type.
| |||||||||||
Gets a suitable field for this type from the given Chronology.
| |||||||||||
Get the name of the field.
| |||||||||||
Get the halfdays field type.
| |||||||||||
Get the hours field type.
| |||||||||||
Checks whether this field supported in the given Chronology.
| |||||||||||
Get the millis field type.
| |||||||||||
Get the minutes field type.
| |||||||||||
Get the months field type.
| |||||||||||
Get the seconds field type.
| |||||||||||
Get a suitable debug string.
| |||||||||||
Get the weeks field type.
| |||||||||||
Get the weekyears field type.
| |||||||||||
Get the years field type.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructor.
name | the name to use, which by convention, are plural. |
---|
Get the centuries field type.
Get the days field type.
Get the eras field type.
Gets a suitable field for this type from the given Chronology.
chronology | the chronology to use, null means ISOChronology in default zone |
---|
Get the name of the field. By convention, names are plural.
Get the halfdays field type.
Get the hours field type.
Checks whether this field supported in the given Chronology.
chronology | the chronology to use, null means ISOChronology in default zone |
---|
Get the millis field type.
Get the minutes field type.
Get the months field type.
Get the seconds field type.
Get the weeks field type.
Get the weekyears field type.
Get the years field type.