public enum ContinentName extends Enum<ContinentName>
| Enum Constant and Description |
|---|
AFRICA |
ANTARCTICA |
ASIA |
AUSTRALIA |
EUROPE |
NORTH_AMERICA |
SOUTH_AMERICA |
| Modifier and Type | Field and Description |
|---|---|
static EnumDescriptor<ContinentName> |
DESCRIPTOR |
| Modifier and Type | Method and Description |
|---|---|
static ContinentName |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContinentName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContinentName ASIA
public static final ContinentName AFRICA
public static final ContinentName NORTH_AMERICA
public static final ContinentName SOUTH_AMERICA
public static final ContinentName ANTARCTICA
public static final ContinentName EUROPE
public static final ContinentName AUSTRALIA
public static final EnumDescriptor<ContinentName> DESCRIPTOR
public static ContinentName[] values()
for (ContinentName c : ContinentName.values()) System.out.println(c);
public static ContinentName 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 nullCopyright © 2014. All Rights Reserved.