Example usage for Java org.apache.commons.lang3 LocaleUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
List | availableLocaleList() Obtains an unmodifiable list of installed locales. This method is a wrapper around Locale#getAvailableLocales() . |
Set | availableLocaleSet() Obtains an unmodifiable set of installed locales. This method is a wrapper around Locale#getAvailableLocales() . |
List | countriesByLanguage(final String languageCode) Obtains the list of countries supported for a given language. This method takes a language code and searches to find the countries available for that language. |
boolean | isAvailableLocale(final Locale locale) Checks if the locale specified is in the list of available locales. |
List | languagesByCountry(final String countryCode) Obtains the list of languages supported for a given country. This method takes a country code and searches to find the languages available for that country. |
List | localeLookupList(final Locale locale) Obtains the list of locales to search through when performing a locale search. localeLookupList(Locale("fr","CA","xxx")) = [Locale("fr","CA","xxx"), Locale("fr","CA"), Locale("fr")] |
List | localeLookupList(final Locale locale, final Locale defaultLocale) Obtains the list of locales to search through when performing a locale search. localeLookupList(Locale("fr", "CA", "xxx"), Locale("en")) = [Locale("fr","CA","xxx"), Locale("fr","CA"), Locale("fr"), Locale("en"] The result list begins with the most specific locale, then the next more general and so on, finishing with the default locale. |
Locale | toLocale(final String str) Converts a String to a Locale. This method takes the string format of a locale and creates the locale object from it. LocaleUtils.toLocale("") = new Locale("", "") LocaleUtils.toLocale("en") = new Locale("en", "") LocaleUtils.toLocale("en_GB") = new Locale("en", "GB") LocaleUtils.toLocale("en_GB_xxx") = new Locale("en", "GB", "xxx") (#) (#) The behaviour of the JDK variant constructor changed between JDK1.3 and JDK1.4. |