Enum StructuredQuery.ResultType
Package com.here.sdk.search
Enum StructuredQuery.ResultType
- java.lang.Object
-
- java.lang.Enum<StructuredQuery.ResultType>
-
- com.here.sdk.search.StructuredQuery.ResultType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<StructuredQuery.ResultType>
- Enclosing class:
- StructuredQuery
public static enum StructuredQuery.ResultType extends java.lang.Enum<StructuredQuery.ResultType>
Specifies expected result type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CITYExpected result type is city.COUNTRYExpected result type is country.DISTRICTExpected result type is district.POSTAL_CODEExpected result type is postal code.STREETExpected result type is street.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StructuredQuery.ResultTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static StructuredQuery.ResultType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COUNTRY
public static final StructuredQuery.ResultType COUNTRY
Expected result type is country.
-
CITY
public static final StructuredQuery.ResultType CITY
Expected result type is city.
-
POSTAL_CODE
public static final StructuredQuery.ResultType POSTAL_CODE
Expected result type is postal code.
-
DISTRICT
public static final StructuredQuery.ResultType DISTRICT
Expected result type is district.
-
STREET
public static final StructuredQuery.ResultType STREET
Expected result type is street.
-
-
Method Detail
-
values
public static StructuredQuery.ResultType[] 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 (StructuredQuery.ResultType c : StructuredQuery.ResultType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StructuredQuery.ResultType 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
-
-