< prev index next >

src/java.base/share/classes/sun/util/locale/provider/LocaleDataMetaInfo.java

Print this page
rev 49575 : imported patch 8181157


  33  * @author Naoto Sato
  34  */
  35 public interface LocaleDataMetaInfo {
  36 
  37     /**
  38      * Returns the type of LocaleProviderAdapter for which this LocaleData
  39      * provides the data.
  40      * @return type The type of the adapter.
  41      */
  42     public LocaleProviderAdapter.Type getType();
  43 
  44     /**
  45      * Returns the string concatenation of the supported language tags in
  46      * this LocaleData instance
  47      * @param category category of the locale data.
  48      * @return concatenated language tags, separated by a space.
  49      */
  50     public String availableLanguageTags(String category);
  51 
  52     /**
  53      * Returns a map for short time zone ids in BCP47 Unicode extension and
  54      * the long time zone ids.
  55      * @return map of short id to long ids, separated by a space.

  56      */
  57     default public Map<String, String>  tzShortIDs() {
  58         return null;
  59     }
  60 }


  33  * @author Naoto Sato
  34  */
  35 public interface LocaleDataMetaInfo {
  36 
  37     /**
  38      * Returns the type of LocaleProviderAdapter for which this LocaleData
  39      * provides the data.
  40      * @return type The type of the adapter.
  41      */
  42     public LocaleProviderAdapter.Type getType();
  43 
  44     /**
  45      * Returns the string concatenation of the supported language tags in
  46      * this LocaleData instance
  47      * @param category category of the locale data.
  48      * @return concatenated language tags, separated by a space.
  49      */
  50     public String availableLanguageTags(String category);
  51 
  52     /**
  53      * Returns a map for time zone ids to their canonical ids.
  54      * The map key is either an LDML's short id, or a valid
  55      * TZDB zone id.
  56      * @return map of ids to their canonical ids.
  57      */
  58     default public Map<String, String>  tzCanonicalIDs() {
  59         return null;
  60     }
  61 }
< prev index next >