HERE Android SDK Developer's Guide

Units

The enumeration Units is a member of com.here.android.mpa.urbanmobility .

Enumeration Summary

public final enumeration Units

extends java.lang.Enum, java.lang.Object

Units of measurement used, for example, in guidance instructions.

[For complete information, see the section Enumeration Details]

Enum Constant Summary

Table 1. Enum Constants in Units
Fields

public static final Units METRIC

Metric System of Measurement.

public static final Units IMPERIAL

Imperial System of Measurement.

Field Summary

Table 2. Fields in Units
Fields

public final String value

Method Summary

Table 3. Methods in Units
Methods

public String toString ()

public static Units valueOf (String name)

This method retrieves the enumeration value that matches the name specified by the caller.

public static Units[] values ()

This method retrieves an array of constants of the given enum type in the order in which they are declared.

Enumeration Details

Units of measurement used, for example, in guidance instructions. The possible values are: - metric - imperial

Enum Constant Details

public static final Units METRIC

Metric System of Measurement. I.E. meters, kilometers.

public static final Units IMPERIAL

Imperial System of Measurement. I.E. feet, miles

Field Details

public final String value

Method Details

public String toString ()

public static Units valueOf (String name)

This method retrieves the enumeration value that matches the name specified by the caller.

Parameters:

  • name

    A string containing the name of the enumeration member whose value is to be retrieved.

public static Units[] values ()

This method retrieves an array of constants of the given enum type in the order in which they are declared.