java.lang.Object | |
↳ | org.joda.time.convert.AbstractConverter |
AbstractConverter simplifies the process of implementing a converter.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Restricted constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Extracts the chronology from an object of this convertor's type
where the chronology is specified.
| |||||||||||
Extracts the chronology from an object of this convertor's type
where the time zone is specified.
| |||||||||||
Extracts the millis from an object of this convertor's type.
| |||||||||||
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.
| |||||||||||
Selects a suitable period type for the given object.
| |||||||||||
Checks if the input is a ReadableInterval.
| |||||||||||
Gets a debugging string version of this converter.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.joda.time.convert.Converter
|
Restricted constructor.
Extracts the chronology from an object of this convertor's type where the chronology is specified.
This implementation returns the chronology specified, or the ISO chronology in the default zone if null passed in.
object | the object to convert |
---|---|
chrono | the chronology to use, null means ISO default |
Extracts the chronology from an object of this convertor's type where the time zone is specified.
This implementation returns the ISO chronology.
object | the object to convert |
---|---|
zone | the specified zone to use, null means default zone |
Extracts the millis from an object of this convertor's type.
This implementation returns the current time.
object | the object to convert |
---|---|
chrono | the chronology to use, which is always non-null |
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.
This implementation calls getPartialValues(ReadablePartial, Object, Chronology)
.
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.
This implementation calls getInstantMillis(Object, Chronology)
.
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 |
---|
Selects a suitable period type for the given object.
object | the object to examine |
---|
Checks if the input is a ReadableInterval.
If it is, then the calling code should cast and copy the fields directly.
object | the object to convert |
---|---|
chrono | the chronology to use, may be null |
Gets a debugging string version of this converter.