| Enum Constant and Description |
|---|
Australia |
Canada |
France |
Ireland |
NewZealand |
UnitedKingdom |
UnitedStatesOfAmerica |
| Modifier and Type | Method and Description |
|---|---|
static Country |
codeOf(java.lang.String countryCode) |
java.lang.String |
getCode() |
java.lang.String |
getDisplayName() |
java.lang.String |
toString() |
static Country |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Country[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Country Australia
public static final Country Canada
public static final Country France
public static final Country Ireland
public static final Country NewZealand
public static final Country UnitedKingdom
public static final Country UnitedStatesOfAmerica
public static Country[] values()
for (Country c : Country.values()) System.out.println(c);
public static Country valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getCode()
public java.lang.String getDisplayName()
public java.lang.String toString()
toString in class java.lang.Enum<Country>public static Country codeOf(java.lang.String countryCode)