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 {@link #getField(Chronology)} method that returns the actual calculation enginefor 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 {@link #getField(Chronology)}.
@author Stephen Colebourne
@author Brian S O'Neill
@since 1.0
|
|
|
|
|
|