@AnyThread public final class Country extends Object
The user should not be able to create a new Country as in real life, countries are not just created.
Modifier and Type | Method and Description |
---|---|
String |
getAlpha2()
Get the alpha2 of the country
|
String |
getAlpha3()
Get the alpha3 of the country
|
long |
getArea()
Get the surface area of this country (km^2)
|
String |
getCapital()
Get capital
|
String |
getContinent()
Get continent
|
Currency |
getCurrency()
Get the currency for this country
|
int |
getFlagResource()
Get the image resouce of the country
|
String |
getId()
Get the ISO 3166-1 numeric code of the country
|
String |
getName()
Get the name of the country
|
long |
getPopulation()
Get population
|
String |
toString() |
public final int getFlagResource()
public Currency getCurrency()
public final String getCapital()
public final String getContinent()
public final long getArea()
public final long getPopulation()
public String toString()
public final String getName()
public final String getAlpha2()
public final String getAlpha3()
public final String getId()