org.jdesktop.swingx.ws.yahoo.search
Enum Country
java.lang.Object
java.lang.Enum<Country>
org.jdesktop.swingx.ws.yahoo.search.Country
- All Implemented Interfaces:
- Serializable, Comparable<Country>
public enum Country
- extends Enum<Country>
Country codes supported by Yahoo search services.
|
Method Summary |
String |
getCode()
|
static Country |
valueOf(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. |
ARGENTINA
public static final Country ARGENTINA
AUSTRALIA
public static final Country AUSTRALIA
AUSTRIA
public static final Country AUSTRIA
BELGIUM
public static final Country BELGIUM
BRAZIL
public static final Country BRAZIL
CANADA
public static final Country CANADA
CHINA
public static final Country CHINA
CZECHOSLOVAKIA
public static final Country CZECHOSLOVAKIA
DENMARK
public static final Country DENMARK
FINLAND
public static final Country FINLAND
FRANCE
public static final Country FRANCE
GERMANY
public static final Country GERMANY
ITALY
public static final Country ITALY
JAPAN
public static final Country JAPAN
KOREA
public static final Country KOREA
NETHERLANDS
public static final Country NETHERLANDS
NORWAY
public static final Country NORWAY
POLAND
public static final Country POLAND
RUSSIAN_FEDERATION
public static final Country RUSSIAN_FEDERATION
SPAIN
public static final Country SPAIN
SWEDEN
public static final Country SWEDEN
SWITZERLAND
public static final Country SWITZERLAND
TAIWAN
public static final Country TAIWAN
UNITED_KINGDOM
public static final Country UNITED_KINGDOM
UNITED_STATES
public static final Country UNITED_STATES
values
public static Country[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Country c : Country.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Country valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getCode
public String getCode()