public enum Continent extends Enum<Continent>
Enumeration for all continents based on the 7 continent model found on Wikipedia and the World Geographical Scheme for Recording Plant Distributions (WGSRPD).
In particular this splits the Americas into North and South America with North America including the Caribbean (except Trinidad and Tobago) and reaching down and including Panama. See the GBIF Continents for the exact divisions.
This is a geographical division. For GBIF's political divisions, see GbifRegion
.
Enum Constant and Description |
---|
AFRICA
Africa.
|
ANTARCTICA
Antarctica.
|
ASIA
Asia.
|
EUROPE
Europe.
|
NORTH_AMERICA
North America
|
OCEANIA
Oceania.
|
SOUTH_AMERICA
South America.
|
Modifier and Type | Method and Description |
---|---|
static Continent |
fromString(String continent) |
String |
getTitle() |
static Continent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Continent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Continent ANTARCTICA
public static final Continent NORTH_AMERICA
This includes the Caribbean and Central America.
public static final Continent SOUTH_AMERICA
public static Continent[] values()
for (Continent c : Continent.values()) System.out.println(c);
public static 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 static Continent fromString(String continent)
continent
- nameCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.