Enum AreaType

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

    public enum AreaType
    extends java.lang.Enum<AreaType>

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

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CITY
      Represents a city.
      COUNTRY
      Represents a country, ie.
      COUNTY
      Represents a county, ie.
      DISTRICT
      Represents a district.
      POSTAL_CODE
      Represents a postal code area.
      STATE
      Represents a state, ie.
      SUB_DISTRICT
      Represents a subdistrict.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static AreaType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static AreaType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 Detail

      • values

        public static AreaType[] 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 (AreaType c : AreaType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AreaType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null