org.joda.time.convert.PartialConverter |
PartialConverter defines how an object is converted to a ReadablePartial.
The two methods in this interface must be called in order, as the
getPartialValues
method relies on the result of the
getChronology
method being passed in.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Extracts the chronology from an object of this converter's type
where the chronology is specified.
| |||||||||||
Extracts the chronology from an object of this converter's type
where the time zone is specified.
| |||||||||||
Extracts the values of the partial from an object of this converter's type.
| |||||||||||
Extracts the values of the partial from an object of this converter's type.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.joda.time.convert.Converter
|
Extracts the chronology from an object of this converter's type where the chronology is specified.
object | the object to convert |
---|---|
chrono | the chronology to use, null usually means ISO |
ClassCastException | if the object is invalid |
---|
Extracts the chronology from an object of this converter's type where the time zone is specified.
object | the object to convert |
---|---|
zone | the specified zone to use, null means default zone |
ClassCastException | if the object is invalid |
---|
Extracts the values of the partial from an object of this converter's type. The chrono parameter is a hint to the converter, should it require a chronology to aid in conversion.
fieldSource | a partial that provides access to the fields. This partial may be incomplete and only getFieldType(int) should be used |
---|---|
object | the object to convert |
chrono | the chronology to use, which is the non-null result of getChronology() |
parser | if converting from a String, the given parser is preferred |
ClassCastException | if the object is invalid |
---|
Extracts the values of the partial from an object of this converter's type. The chrono parameter is a hint to the converter, should it require a chronology to aid in conversion.
fieldSource | a partial that provides access to the fields. This partial may be incomplete and only getFieldType(int) should be used |
---|---|
object | the object to convert |
chrono | the chronology to use, which is the non-null result of getChronology() |
ClassCastException | if the object is invalid |
---|