Object CountryUtils

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static List<CountryInfo> getCountries(List<String> allowedISOCodes) Returns the list of supported countries to display.
      final static String getCountryName(String isoCode, Locale locale) Returns the localized display name of a country
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getCountries

         final static List<CountryInfo> getCountries(List<String> allowedISOCodes)

        Returns the list of supported countries to display.

        Parameters:
        allowedISOCodes - the list of ISO codes to filter the countries with.
        Returns:

        the list of countries.

      • getCountryName

         final static String getCountryName(String isoCode, Locale locale)

        Returns the localized display name of a country

        Parameters:
        isoCode - the ISO code of the country.
        locale - the locale in which the country name should be localized.
        Returns:

        the localized country name.