Enum Class AreaType

java.lang.Object
java.lang.Enum<AreaType>
com.here.sdk.search.AreaType
All Implemented Interfaces:
Serializable, Comparable<AreaType>, Constable

public enum AreaType extends Enum<AreaType>

Represents a type of area like country, state, city, county, etc.

  • Enum Constant Details

    • COUNTRY

      public static final AreaType COUNTRY

      Represents a country, ie. a territory with its own borders and total sovereignty

    • STATE

      public static final AreaType STATE

      Represents a state, ie. a part of a large country.

    • COUNTY

      public static final AreaType COUNTY

      Represents a county, ie. an administrative division in a state or country.

    • CITY

      public static final AreaType CITY

      Represents a city.

    • POSTAL_CODE

      public static final AreaType POSTAL_CODE

      Represents a postal code area.

    • DISTRICT

      public static final AreaType DISTRICT

      Represents a district.

    • SUB_DISTRICT

      public static final AreaType SUB_DISTRICT

      Represents a subdistrict.

  • Method Details

    • values

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