Package org.gbif.api.vocabulary
Enum Continent
- java.lang.Object
-
- java.lang.Enum<Continent>
-
- org.gbif.api.vocabulary.Continent
-
- All Implemented Interfaces:
Serializable
,Comparable<Continent>
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 Summary
Enum Constants Enum Constant Description AFRICA
Africa.ANTARCTICA
Antarctica.ASIA
Asia.EUROPE
Europe.NORTH_AMERICA
North AmericaOCEANIA
Oceania.SOUTH_AMERICA
South America.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
ANTARCTICA
public static final Continent ANTARCTICA
Antarctica.
-
NORTH_AMERICA
public static final Continent NORTH_AMERICA
North AmericaThis includes the Caribbean and Central America.
-
SOUTH_AMERICA
public static final Continent SOUTH_AMERICA
South America.
-
-
Method Detail
-
values
public static Continent[] 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 (Continent c : Continent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Continent 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 nameNullPointerException
- if the argument is null
-
fromString
public static Continent fromString(String continent)
- Parameters:
continent
- name- Returns:
- the matching continent or null
-
-