|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--campus.compass.CountryCode
Manages the mapping of the country name to its 2-char code.
Field Summary | |
private static java.util.Hashtable |
_country
|
Constructor Summary | |
private |
CountryCode()
|
Method Summary | |
static java.lang.String |
getCountryCode(java.lang.String name)
Get 2-digit code of a country for specified name. |
static java.lang.String |
getCountryName(java.lang.String code)
Get full name of a country for specified code. |
private static void |
initCountryMapping()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.util.Hashtable _country
Constructor Detail |
private CountryCode()
Method Detail |
public static java.lang.String getCountryCode(java.lang.String name)
public static java.lang.String getCountryName(java.lang.String code)
private static void initCountryMapping()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |