java.lang.Object | |
↳ | org.joda.time.convert.ConverterManager |
ConverterManager controls the date and time converters.
This class enables additional conversion classes to be added via
addInstantConverter(InstantConverter)
, which may replace an
existing converter. Similar methods exist for duration, time period and
interval converters.
This class is threadsafe, so adding/removing converters can be done at any time. Updating the set of convertors is relatively expensive, and so should not be performed often.
The default instant converters are:
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Restricted constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a converter to the set of converters.
| |||||||||||
Adds a converter to the set of converters.
| |||||||||||
Adds a converter to the set of converters.
| |||||||||||
Adds a converter to the set of converters.
| |||||||||||
Adds a converter to the set of converters.
| |||||||||||
Gets the best converter for the object specified.
| |||||||||||
Gets a copy of the list of converters.
| |||||||||||
Gets the best converter for the object specified.
| |||||||||||
Gets a copy of the set of converters.
| |||||||||||
Gets the best converter for the object specified.
| |||||||||||
Gets a copy of the list of converters.
| |||||||||||
Gets the best converter for the object specified.
| |||||||||||
Gets a copy of the set of converters.
| |||||||||||
Gets the best converter for the object specified.
| |||||||||||
Gets a copy of the list of converters.
| |||||||||||
Removes a converter from the set of converters.
| |||||||||||
Removes a converter from the set of converters.
| |||||||||||
Removes a converter from the set of converters.
| |||||||||||
Removes a converter from the set of converters.
| |||||||||||
Removes a converter from the set of converters.
| |||||||||||
Gets a debug representation of the object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Restricted constructor.
Adds a converter to the set of converters. If a matching converter is already in the set, the given converter replaces it. If the converter is exactly the same as one already in the set, no changes are made.
The order in which converters are added is not relevent. The best converter is selected by examining the object hierarchy.
converter | the converter to add, null ignored |
---|
SecurityException |
---|
Adds a converter to the set of converters. If a matching converter is already in the set, the given converter replaces it. If the converter is exactly the same as one already in the set, no changes are made.
The order in which converters are added is not relevent. The best converter is selected by examining the object hierarchy.
converter | the converter to add, null ignored |
---|
SecurityException |
---|
Adds a converter to the set of converters. If a matching converter is already in the set, the given converter replaces it. If the converter is exactly the same as one already in the set, no changes are made.
The order in which converters are added is not relevent. The best converter is selected by examining the object hierarchy.
converter | the converter to add, null ignored |
---|
SecurityException |
---|
Adds a converter to the set of converters. If a matching converter is already in the set, the given converter replaces it. If the converter is exactly the same as one already in the set, no changes are made.
The order in which converters are added is not relevent. The best converter is selected by examining the object hierarchy.
converter | the converter to add, null ignored |
---|
SecurityException |
---|
Adds a converter to the set of converters. If a matching converter is already in the set, the given converter replaces it. If the converter is exactly the same as one already in the set, no changes are made.
The order in which converters are added is not relevent. The best converter is selected by examining the object hierarchy.
converter | the converter to add, null ignored |
---|
SecurityException |
---|
Gets the best converter for the object specified.
object | the object to convert |
---|
IllegalArgumentException | if no suitable converter |
---|---|
IllegalStateException | if multiple converters match the type equally well |
Gets a copy of the list of converters.
Gets the best converter for the object specified.
object | the object to convert |
---|
IllegalArgumentException | if no suitable converter |
---|---|
IllegalStateException | if multiple converters match the type equally well |
Gets a copy of the set of converters.
Gets the best converter for the object specified.
object | the object to convert |
---|
IllegalArgumentException | if no suitable converter |
---|---|
IllegalStateException | if multiple converters match the type equally well |
Gets a copy of the list of converters.
Gets the best converter for the object specified.
object | the object to convert |
---|
IllegalArgumentException | if no suitable converter |
---|---|
IllegalStateException | if multiple converters match the type equally well |
Gets a copy of the set of converters.
Gets the best converter for the object specified.
object | the object to convert |
---|
IllegalArgumentException | if no suitable converter |
---|---|
IllegalStateException | if multiple converters match the type equally well |
Gets a copy of the list of converters.
Removes a converter from the set of converters. If the converter was not in the set, no changes are made.
converter | the converter to remove, null ignored |
---|
SecurityException |
---|
Removes a converter from the set of converters. If the converter was not in the set, no changes are made.
converter | the converter to remove, null ignored |
---|
SecurityException |
---|
Removes a converter from the set of converters. If the converter was not in the set, no changes are made.
converter | the converter to remove, null ignored |
---|
SecurityException |
---|
Removes a converter from the set of converters. If the converter was not in the set, no changes are made.
converter | the converter to remove, null ignored |
---|
SecurityException |
---|
Removes a converter from the set of converters. If the converter was not in the set, no changes are made.
converter | the converter to remove, null ignored |
---|
SecurityException |
---|