|
GeoSoft API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Object | +--Country
Class reprenting a country (according to ISO 3166-1). The class consist of both ISO code and name, where name is a localized version of the official country name.
CountryManager| Constructor Summary | |
Country(Country country)
Create a copy of the country instance specified. |
|
Country(String isoCode)
Create a country instance with given ISO code. |
|
| Method Summary | |
int |
compareTo(Object object)
Lexiographically compare this country to the specified object. |
boolean |
equals(Object object)
Check if this object equals the specified object. |
String |
getIsoCode()
Retur ISO code of this country. |
String |
getName()
Return localized name of this country. |
String |
getShortName()
Return localized short name of this country. |
int |
hashCode()
Return hash code for this object. |
void |
setName(String name)
Set localized name of this country. |
void |
setShortName(String shortName)
Set localized short name of this country. |
String |
toString()
Retrun a string representation of this country. |
| Methods inherited from class Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Country(String isoCode)
isoCode - ISO code of country.public Country(Country country)
country - Country to copy.| Method Detail |
public String getIsoCode()
public String getName()
public void setName(String name)
name - Localized name of this country.public String getShortName()
public void setShortName(String shortName)
shortName - Localized short name of this country.public String toString()
toString in class Objectpublic int compareTo(Object object)
compareTo in interface Comparableobject - Country to compare to.
Comparablepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectobject - Object to compare to.
|
GeoSoft API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||