Enum Class Continent

java.lang.Object
java.lang.Enum<Continent>
org.gbif.api.vocabulary.Continent
All Implemented Interfaces:
Serializable, Comparable<Continent>, Constable

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 Details

  • Method Details

    • values

      public static Continent[] 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

      public static Continent valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getTitle

      public String getTitle()
      Returns:
      the continent name in the English language.
    • fromString

      public static Continent fromString(String continent)
      Parameters:
      continent - name
      Returns:
      the matching continent or null