Class BasicPeriodFormatterService
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.duration.BasicPeriodFormatterService
- All Implemented Interfaces:
PeriodFormatterService
An implementation of PeriodFormatterService that constructs a
BasicPeriodFormatterFactory.
-
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 BasicPeriodFormatterServiceReturn 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.
-
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:PeriodFormatterServiceCreates a new factory for creating DurationFormatters.- Specified by:
newDurationFormatterFactoryin interfacePeriodFormatterService- Returns:
- a new DurationFormatterFactory.
-
newPeriodFormatterFactory
Description copied from interface:PeriodFormatterServiceCreates a new factory for creating PeriodFormatters.- Specified by:
newPeriodFormatterFactoryin interfacePeriodFormatterService- Returns:
- a new PeriodFormatterFactory
-
newPeriodBuilderFactory
Description copied from interface:PeriodFormatterServiceCreates a new factory for creating PeriodBuilders.- Specified by:
newPeriodBuilderFactoryin interfacePeriodFormatterService- Returns:
- a new PeriodBuilderFactory
-
getAvailableLocaleNames
Description copied from interface:PeriodFormatterServiceReturn the names of locales supported by factories produced by this service.- Specified by:
getAvailableLocaleNamesin interfacePeriodFormatterService- Returns:
- a collection of String (locale names)
-