public class WorldPlace extends Object
| Constructor and Description |
|---|
WorldPlace(String name,
String countryCode,
float lat,
float lon,
List<Shape> shape)
Construct a new world place.
|
| Modifier and Type | Method and Description |
|---|---|
double |
calculateArea()
Calculates the area of the country
|
String |
getCountryCode() |
String |
getISOA2() |
float |
getLatitude() |
float |
getLongitude() |
String |
getName() |
List<Shape> |
getShapes() |
String |
toString() |
public WorldPlace(String name, String countryCode, float lat, float lon, List<Shape> shape)
name - The country's namecountryCode - The country's international code (ISOA2)lat - The latitudelon - The longitudeshape - The shape of the countrypublic String toString()
toString in class ObjectObject.toString()public double calculateArea()
public String getCountryCode()
public float getLatitude()
public float getLongitude()