Class ResourceBasedPeriodFormatterDataService
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.duration.impl.PeriodFormatterDataService
org.graalvm.shadowed.com.ibm.icu.impl.duration.impl.ResourceBasedPeriodFormatterDataService
A PeriodFormatterDataService that serves PeriodFormatterData objects based on
data files stored as resources in this directory. These are text files named
after the locale, for example, 'pfd_he_IL.txt' specifies an period formatter
data file for Hebrew as spoken in Israel. Data is in a JSON-like format.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a PeriodFormatterData for the given locale name.Returns a collection of all the locale names supported by this service.Returns the singleton instance of this class.
-
Method Details
-
getInstance
Returns the singleton instance of this class. -
get
Description copied from class:PeriodFormatterDataServiceReturns a PeriodFormatterData for the given locale name.- Specified by:
getin classPeriodFormatterDataService- Parameters:
localeName- the name of the locale- Returns:
- a PeriodFormatterData object
-
getAvailableLocales
Description copied from class:PeriodFormatterDataServiceReturns a collection of all the locale names supported by this service.- Specified by:
getAvailableLocalesin classPeriodFormatterDataService- Returns:
- a collection of locale names, as String
-