public final class Country extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
String |
getCodeAlpha3() |
String |
getCodeAplha2() |
short |
getCodeNum() |
static List<Country> |
getCountries()
Get the list of all countries.
|
static Country |
getCountry(String codeAplha2)
Get the Country by the ISO 2 character code (ignoring case).
|
static Country |
getCountryByName(String name)
Get a Country by it's name (ignoring case).
|
static Country |
getCountryByPhoneCode(String code)
Get a Country by it's ITU-T phone country code.
|
static Country |
getCountryByPhoneNumber(String phoneNumber)
Get a Country for a phone number.
|
String |
getName() |
String |
getPhoneCode() |
String |
getPhoneInternationalFormat() |
String |
getPhoneNationalFormat() |
String |
getPhoneRegEx() |
String |
toString() |
public static List<Country> getCountries()
public static Country getCountry(String codeAplha2)
codeAplha2 - The ISO 2 character code.public static Country getCountryByName(String name)
name - The country name.public static Country getCountryByPhoneCode(String code)
code - The ITU-T phone country code.public static Country getCountryByPhoneNumber(String phoneNumber)
phoneNumber - The normalized phone number.public String getCodeAlpha3()
public String getCodeAplha2()
public short getCodeNum()
public String getName()
public String getPhoneCode()
public String getPhoneInternationalFormat()
public String getPhoneNationalFormat()
public String getPhoneRegEx()
Copyright © 2015 Revolution Systems Inc.. All rights reserved.