|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.senn.magic.util.CountryUtils
public final class CountryUtils
This is a specific class dedicated to finding the country code from a country name or vice versa.
Examples:
| Method Summary | |
|---|---|
static String |
findCountryCode(String countryName)
Find the country code of a country. |
static String |
findCountryName(String countryCode)
Find the country name from a country code. |
static Map<String,String> |
getCountryCodes()
Returns all countries with their corresponding code. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Map<String,String> getCountryCodes()
Map - a Map containing the countries and their codepublic static String findCountryCode(String countryName)
countryName - the name of the country
String - the country code, or null if the country doesn't existpublic static String findCountryName(String countryCode)
countryCode - the code of the country
String - the country name, or null if the country doesn't exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||