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; 12 13 import java.util.Collection; 14 15 /** 16 * Provider of Factory instances for building PeriodBuilders, PeriodFormatters, 17 * and DurationFormatters. 18 * @hide exposed on OHOS 19 */ 20 public interface PeriodFormatterService { 21 22 /** 23 * Creates a new factory for creating DurationFormatters. 24 * 25 * @return a new DurationFormatterFactory. 26 */ newDurationFormatterFactory()27 DurationFormatterFactory newDurationFormatterFactory(); 28 29 /** 30 * Creates a new factory for creating PeriodFormatters. 31 * 32 * @return a new PeriodFormatterFactory 33 */ newPeriodFormatterFactory()34 PeriodFormatterFactory newPeriodFormatterFactory(); 35 36 /** 37 * Creates a new factory for creating PeriodBuilders. 38 * 39 * @return a new PeriodBuilderFactory 40 */ newPeriodBuilderFactory()41 PeriodBuilderFactory newPeriodBuilderFactory(); 42 43 /** 44 * Return the names of locales supported by factories produced by this 45 * service. 46 * 47 * @return a collection of String (locale names) 48 */ getAvailableLocaleNames()49 Collection<String> getAvailableLocaleNames(); 50 } 51