|
Golibri | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.golibri.common.contact.Country
If you need to work with countries, this is the class you want. Country objects are created with a country code. This can be an alpha-2, alpha-3 or numeric-3 country code.
Alpha2CountryCode,
Alpha3CountryCode,
Numeric3CountryCode| Constructor Summary | |
Country(Alpha2CountryCode countryCode)
Constructor. |
|
Country(Alpha3CountryCode countryCode)
Constructor. |
|
Country(Numeric3CountryCode countryCode)
Constructor. |
|
Country(java.lang.String countryCode)
Constructor. |
|
| Method Summary | |
boolean |
equals(java.lang.Object object)
|
Alpha2CountryCode |
getAlpha2CountryCode()
Gets the alpha-2 country code of this country object. |
Alpha3CountryCode |
getAlpha3CountryCode()
Gets the alpha-3 country code of this country object. |
Numeric3CountryCode |
getNumeric3CountryCode()
Gets the numeric-3 country code of this country object. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Country(java.lang.String countryCode)
countryCode - String parameter containing the country code
java.lang.NullPointerException - If the parameter countryCode is null
java.lang.IllegalArgumentException - If the given country code doesn't existpublic Country(Alpha2CountryCode countryCode)
countryCode - The alpha-2 country code
java.lang.NullPointerException - If the parameter countryCode is null
java.lang.IllegalArgumentException - If the given alpha-2 country code doesn't existpublic Country(Alpha3CountryCode countryCode)
countryCode - The alpha-3 country code
java.lang.NullPointerException - If the parameter countryCode is null
java.lang.IllegalArgumentException - If the given alpha-3 country code doesn't existpublic Country(Numeric3CountryCode countryCode)
countryCode - The numeric-3 country code
java.lang.NullPointerException - If the parameter countryCode is null
java.lang.IllegalArgumentException - If the given numeric-3 country code doesn't exist| Method Detail |
public Alpha2CountryCode getAlpha2CountryCode()
public Alpha3CountryCode getAlpha3CountryCode()
public Numeric3CountryCode getNumeric3CountryCode()
public java.lang.String toString()
Object.toString()public int hashCode()
Object.hashCode()public boolean equals(java.lang.Object object)
Object.equals(java.lang.Object)
|
Golibri | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||