public enum UnitSystem extends java.lang.Enum<UnitSystem>
Enum Constant and Description |
---|
IMPERIAL
Specifies that distances in the DirectionsResult should be expressed in imperial units.
|
METRIC
Specifies that distances in the DirectionsResult should be expressed in metric units.
|
Modifier and Type | Method and Description |
---|---|
static UnitSystem |
fromValue(int type) |
java.lang.String |
toString() |
int |
value() |
static UnitSystem |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnitSystem[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitSystem IMPERIAL
public static final UnitSystem METRIC
public static UnitSystem[] values()
for (UnitSystem c : UnitSystem.values()) System.out.println(c);
public static UnitSystem valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int value()
public static UnitSystem fromValue(int type)
public java.lang.String toString()
toString
in class java.lang.Enum<UnitSystem>