public class BasicPeriodFormatterService extends Object implements PeriodFormatterService
| Constructor and Description |
|---|
BasicPeriodFormatterService(PeriodFormatterDataService ds)
Construct a BasicPeriodFormatterService using the given
PeriodFormatterDataService.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getAvailableLocaleNames()
Return the names of locales supported by factories produced by this
service.
|
static BasicPeriodFormatterService |
getInstance()
Return the default service instance.
|
DurationFormatterFactory |
newDurationFormatterFactory()
Creates a new factory for creating DurationFormatters.
|
PeriodBuilderFactory |
newPeriodBuilderFactory()
Creates a new factory for creating PeriodBuilders.
|
PeriodFormatterFactory |
newPeriodFormatterFactory()
Creates a new factory for creating PeriodFormatters.
|
public BasicPeriodFormatterService(PeriodFormatterDataService ds)
ds - the data service to usepublic static BasicPeriodFormatterService getInstance()
public DurationFormatterFactory newDurationFormatterFactory()
PeriodFormatterServicenewDurationFormatterFactory in interface PeriodFormatterServicepublic PeriodFormatterFactory newPeriodFormatterFactory()
PeriodFormatterServicenewPeriodFormatterFactory in interface PeriodFormatterServicepublic PeriodBuilderFactory newPeriodBuilderFactory()
PeriodFormatterServicenewPeriodBuilderFactory in interface PeriodFormatterServicepublic Collection<String> getAvailableLocaleNames()
PeriodFormatterServicegetAvailableLocaleNames in interface PeriodFormatterService