Package org.gbif.api.vocabulary
Enum Class Continent
- All Implemented Interfaces:
Serializable
,Comparable<Continent>
,Constable
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
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAfrica.Antarctica.Asia.Europe.North AmericaOceania.South America. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
AFRICA
Africa. -
ANTARCTICA
Antarctica. -
ASIA
Asia. -
OCEANIA
Oceania. -
EUROPE
Europe. -
NORTH_AMERICA
North AmericaThis includes the Caribbean and Central America.
-
SOUTH_AMERICA
South America.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getTitle
- Returns:
- the continent name in the English language.
-
fromString
- Parameters:
continent
- name- Returns:
- the matching continent or null
-