public final class Countries extends Object
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_COUNTRY_CODE |
private static String |
UNKNOWN_COUNTRY_CODE |
Modifier | Constructor and Description |
---|---|
private |
Countries()
Make the class a true utility class by having a private constructor.
|
Modifier and Type | Method and Description |
---|---|
static String |
getCountry(String iso3166Code)
Get the country name from the country code.
|
private static ResourceBundle |
getLocalisedCountries()
Gets the localised countries.
|
static boolean |
isValidCountry(String iso3166Code)
Determine whether the country code is valid.
|
public static final String DEFAULT_COUNTRY_CODE
private static final String UNKNOWN_COUNTRY_CODE
private Countries()
public static boolean isValidCountry(String iso3166Code)
iso3166Code
- the country codepublic static String getCountry(String iso3166Code)
iso3166Code
- the country codeprivate static ResourceBundle getLocalisedCountries()