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