Package com.ibm.icu.impl.duration
Class BasicPeriodFormatterService
- java.lang.Object
-
- com.ibm.icu.impl.duration.BasicPeriodFormatterService
-
- All Implemented Interfaces:
PeriodFormatterService
public class BasicPeriodFormatterService extends Object implements PeriodFormatterService
An implementation of PeriodFormatterService that constructs a BasicPeriodFormatterFactory.
-
-
Constructor Summary
Constructors Constructor Description BasicPeriodFormatterService(PeriodFormatterDataService ds)Construct a BasicPeriodFormatterService using the given PeriodFormatterDataService.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>getAvailableLocaleNames()Return the names of locales supported by factories produced by this service.static BasicPeriodFormatterServicegetInstance()Return the default service instance.DurationFormatterFactorynewDurationFormatterFactory()Creates a new factory for creating DurationFormatters.PeriodBuilderFactorynewPeriodBuilderFactory()Creates a new factory for creating PeriodBuilders.PeriodFormatterFactorynewPeriodFormatterFactory()Creates a new factory for creating PeriodFormatters.
-
-
-
Constructor Detail
-
BasicPeriodFormatterService
public BasicPeriodFormatterService(PeriodFormatterDataService ds)
Construct a BasicPeriodFormatterService using the given PeriodFormatterDataService.- Parameters:
ds- the data service to use
-
-
Method Detail
-
getInstance
public static BasicPeriodFormatterService getInstance()
Return the default service instance. This uses the default data service.- Returns:
- an BasicPeriodFormatterService
-
newDurationFormatterFactory
public DurationFormatterFactory newDurationFormatterFactory()
Description copied from interface:PeriodFormatterServiceCreates a new factory for creating DurationFormatters.- Specified by:
newDurationFormatterFactoryin interfacePeriodFormatterService- Returns:
- a new DurationFormatterFactory.
-
newPeriodFormatterFactory
public PeriodFormatterFactory newPeriodFormatterFactory()
Description copied from interface:PeriodFormatterServiceCreates a new factory for creating PeriodFormatters.- Specified by:
newPeriodFormatterFactoryin interfacePeriodFormatterService- Returns:
- a new PeriodFormatterFactory
-
newPeriodBuilderFactory
public PeriodBuilderFactory newPeriodBuilderFactory()
Description copied from interface:PeriodFormatterServiceCreates a new factory for creating PeriodBuilders.- Specified by:
newPeriodBuilderFactoryin interfacePeriodFormatterService- Returns:
- a new PeriodBuilderFactory
-
getAvailableLocaleNames
public Collection<String> 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)
-
-