public enum AreaCode extends Enum<AreaCode>
Java class for AreaCode.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AreaCode"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="AFR"/> <enumeration value="CAN"/> <enumeration value="EEU"/> <enumeration value="EUR"/> <enumeration value="LAM"/> <enumeration value="MES"/> <enumeration value="PAC"/> <enumeration value="SAM"/> <enumeration value="SPA"/> <enumeration value="USA"/> </restriction> </simpleType>
Enum Constant and Description |
---|
AFR
Africa
|
CAN
Canada
|
EEU
Eastern Europe and Asia
|
EUR
Europe
|
LAM
Latin America
|
MES
Middle East
|
PAC
Pacific
|
SAM
South America
|
SPA
South Pacific
|
USA
United States
|
Modifier and Type | Method and Description |
---|---|
static AreaCode |
fromValue(String v) |
String |
value() |
static AreaCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AreaCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AreaCode AFR
public static final AreaCode CAN
public static final AreaCode EEU
public static final AreaCode EUR
public static final AreaCode LAM
public static final AreaCode MES
public static final AreaCode PAC
public static final AreaCode SAM
public static final AreaCode SPA
public static final AreaCode USA
public static AreaCode[] values()
for (AreaCode c : AreaCode.values()) System.out.println(c);
public static AreaCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String value()
Copyright © 2017. All rights reserved.