Package com.ibm.icu.impl.duration
Class BasicPeriodFormatterService
java.lang.Object
com.ibm.icu.impl.duration.BasicPeriodFormatterService
- All Implemented Interfaces:
PeriodFormatterService
An implementation of PeriodFormatterService that constructs a
BasicPeriodFormatterFactory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PeriodFormatterDataService
private static BasicPeriodFormatterService
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a BasicPeriodFormatterService using the given PeriodFormatterDataService. -
Method Summary
Modifier and TypeMethodDescriptionReturn the names of locales supported by factories produced by this service.static BasicPeriodFormatterService
Return the default service instance.Creates a new factory for creating DurationFormatters.Creates a new factory for creating PeriodBuilders.Creates a new factory for creating PeriodFormatters.
-
Field Details
-
instance
-
ds
-
-
Constructor Details
-
BasicPeriodFormatterService
Construct a BasicPeriodFormatterService using the given PeriodFormatterDataService.- Parameters:
ds
- the data service to use
-
-
Method Details
-
getInstance
Return the default service instance. This uses the default data service.- Returns:
- an BasicPeriodFormatterService
-
newDurationFormatterFactory
Description copied from interface:PeriodFormatterService
Creates a new factory for creating DurationFormatters.- Specified by:
newDurationFormatterFactory
in interfacePeriodFormatterService
- Returns:
- a new DurationFormatterFactory.
-
newPeriodFormatterFactory
Description copied from interface:PeriodFormatterService
Creates a new factory for creating PeriodFormatters.- Specified by:
newPeriodFormatterFactory
in interfacePeriodFormatterService
- Returns:
- a new PeriodFormatterFactory
-
newPeriodBuilderFactory
Description copied from interface:PeriodFormatterService
Creates a new factory for creating PeriodBuilders.- Specified by:
newPeriodBuilderFactory
in interfacePeriodFormatterService
- Returns:
- a new PeriodBuilderFactory
-
getAvailableLocaleNames
Description copied from interface:PeriodFormatterService
Return the names of locales supported by factories produced by this service.- Specified by:
getAvailableLocaleNames
in interfacePeriodFormatterService
- Returns:
- a collection of String (locale names)
-