public class TestCountry extends Country
| Modifier and Type | Field and Description |
|---|---|
static TestCountry |
BP |
static TestCountry |
DV |
static TestCountry |
UT
Utopia.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getName()
Gets the full name of the country.
|
String |
getNationality()
Gets the adjectival form corresponding to the country.
|
int |
hashCode() |
String |
toAlpha2Code()
Gets the two-digit country code.
|
String |
toAlpha3Code()
Gets the three-digit country code.
|
String |
toString() |
int |
valueOf()
Gets the numerical value (the code) of this country.
|
static TestCountry[] |
values() |
getInstance, getInstancepublic static final TestCountry UT
public static final TestCountry BP
public static final TestCountry DV
public static TestCountry[] values()
public int valueOf()
Countrypublic String getName()
Countrypublic String getNationality()
CountrygetNationality in class Countrypublic String toAlpha2Code()
CountrytoAlpha2Code in class Countrypublic String toAlpha3Code()
CountrytoAlpha3Code in class CountryCopyright © 2020. All rights reserved.