public class Country
extends Object
Represents a country.
- Author:
- Matt Tucker
-
-
Method Summary
Modifier and Type |
Method |
Description |
String |
getCode() |
Returns the ISO two-letter country code of this country.
|
String |
getName() |
Returns the name of this country.
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Creates a new Country.
- Parameters:
code
- the country code.
name
- the country name.
-
Method Details
-
Returns the ISO two-letter country code of this country.
- Returns:
- the country code.
-
Returns the name of this country.
- Returns:
- the country name.