Java Code Examples for java.text.DecimalFormatSymbols#getAvailableLocales()

The following examples show how to use java.text.DecimalFormatSymbols#getAvailableLocales() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DecimalFormatSymbolsTest.java    From j2objc with Apache License 2.0 5 votes vote down vote up
/**
 * @tests java.text.DecimalFormatSymbols#getAvailableLocales()
 */
public void test_getAvailableLocales_no_provider() throws Exception {
    Locale[] locales = DecimalFormatSymbols.getAvailableLocales();
    assertNotNull(locales);
    // must contain Locale.US
    boolean flag = false;
    for (Locale locale : locales) {
        if (locale.equals(Locale.US)) {
            flag = true;
            break;
        }
    }
    assertTrue(flag);
}
 
Example 2
Source File: NumberSymbolProvider.java    From Time4A with Apache License 2.0 4 votes vote down vote up
@Override
public Locale[] getAvailableLocales() {
    return DecimalFormatSymbols.getAvailableLocales();
}
 
Example 3
Source File: DecimalStyle.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 4
Source File: DecimalStyle.java    From jdk8u-dev-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 5
Source File: DecimalStyle.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 6
Source File: DecimalStyle.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 7
Source File: DecimalStyle.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 8
Source File: DecimalStyle.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 9
Source File: DecimalStyle.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 10
Source File: DecimalStyle.java    From Java8CN with Apache License 2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 11
Source File: DecimalStyle.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 12
Source File: DecimalStyle.java    From Bytecoder with Apache License 2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 13
Source File: DecimalStyle.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 14
Source File: DecimalStyle.java    From j2objc with Apache License 2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 15
Source File: DecimalStyle.java    From desugar_jdk_libs with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 16
Source File: DecimalStyle.java    From JDKSourceCode1.8 with MIT License 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 17
Source File: DecimalStyle.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 18
Source File: DecimalStyle.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 19
Source File: DecimalStyle.java    From jdk1.8-source-analysis with Apache License 2.0 3 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return a Set of Locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    Set<Locale> locales = new HashSet<>(l.length);
    Collections.addAll(locales, l);
    return locales;
}
 
Example 20
Source File: DecimalStyle.java    From threetenbp with BSD 3-Clause "New" or "Revised" License 2 votes vote down vote up
/**
 * Lists all the locales that are supported.
 * <p>
 * The locale 'en_US' will always be present.
 *
 * @return an array of locales for which localization is supported
 */
public static Set<Locale> getAvailableLocales() {
    Locale[] l = DecimalFormatSymbols.getAvailableLocales();
    return new HashSet<Locale>(Arrays.asList(l));
}