Enum AreaType
Package com.here.sdk.search
Enum AreaType
- java.lang.Object
-
- java.lang.Enum<AreaType>
-
- com.here.sdk.search.AreaType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CITYRepresents a city.COUNTRYRepresents a country, ie.COUNTYRepresents a county, ie.DISTRICTRepresents a district.POSTAL_CODERepresents a postal code area.STATERepresents a state, ie.SUB_DISTRICTRepresents a subdistrict.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AreaTypevalueOf(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.
-
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
-