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(java.lang.Object other) |
java.lang.String |
getName()
Gets the full name of the country.
|
java.lang.String |
getNationality()
Gets the adjectival form corresponding to the country.
|
int |
hashCode() |
java.lang.String |
toAlpha2Code()
Gets the two-digit country code.
|
java.lang.String |
toAlpha3Code()
Gets the three-digit country code.
|
java.lang.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 java.lang.String getName()
Countrypublic java.lang.String getNationality()
CountrygetNationality in class Countrypublic java.lang.String toAlpha2Code()
CountrytoAlpha2Code in class Countrypublic java.lang.String toAlpha3Code()
CountrytoAlpha3Code in class Countrypublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2023. All rights reserved.