1 /* GENERATED SOURCE. DO NOT MODIFY. */ 2 // © 2016 and later: Unicode, Inc. and others. 3 // License & terms of use: http://www.unicode.org/copyright.html#License 4 /* 5 ****************************************************************************** 6 * Copyright (C) 2007-2009, International Business Machines Corporation and * 7 * others. All Rights Reserved. * 8 ****************************************************************************** 9 */ 10 11 package ohos.global.icu.impl.duration.impl; 12 13 import java.util.Collection; 14 15 /** 16 * Abstract service for PeriodFormatterData, which defines the localization data 17 * used by period formatters. 18 * @hide exposed on OHOS 19 */ 20 public abstract class PeriodFormatterDataService { 21 /** 22 * Returns a PeriodFormatterData for the given locale name. 23 * 24 * @param localeName the name of the locale 25 * @return a PeriodFormatterData object 26 */ get(String localeName)27 public abstract PeriodFormatterData get(String localeName); 28 29 /** 30 * Returns a collection of all the locale names supported by this service. 31 * 32 * @return a collection of locale names, as String 33 */ getAvailableLocales()34 public abstract Collection<String> getAvailableLocales(); 35 } 36