public static enum World.Continent extends Enum<World.Continent>
Enum Constant and Description |
---|
AFRICA |
ANTARTICA |
ASIA |
EUROPE |
NORTH_AMERICA |
OCEANA |
SOUTH_AMERICA |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
toString() |
static World.Continent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static World.Continent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final World.Continent AFRICA
public static final World.Continent EUROPE
public static final World.Continent ASIA
public static final World.Continent OCEANA
public static final World.Continent SOUTH_AMERICA
public static final World.Continent NORTH_AMERICA
public static final World.Continent ANTARTICA
public static World.Continent[] values()
for (World.Continent c : World.Continent.values()) System.out.println(c);
public static World.Continent 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 getName()
@NonNull public String toString()
toString
in class Enum<World.Continent>