public 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 |
---|---|
boolean |
equals(Object o) |
String |
getAlpha2()
Get the alpha2 of the country
|
String |
getAlpha3()
Get the alpha3 of the country
|
double |
getArea() |
String |
getCapital() |
String |
getContinent() |
Currency |
getCurrency()
Get the currency for this country
|
int |
getFlagResource()
Get the image resouce of the country
|
int |
getId()
Unique id for each Country
|
String |
getName()
Get the name of the country
|
long |
getPopulation() |
int |
hashCode() |
String |
toString() |
public final String getCapital()
public final String getName()
public final String getAlpha2()
public final String getAlpha3()
@IntegerRes public final int getFlagResource()
public final String getContinent()
public final double getArea()
public final long getPopulation()
public final Currency getCurrency()
public final int getId()