|
Follow us on GitHub |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<UnitSystem>
com.google.gwt.maps.client.services.UnitSystem
public enum UnitSystem
The valid unit systems that can be specified in a DirectionsRequest.
See UnitSystem API Doc
| Enum Constant Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
static UnitSystem |
fromValue(int type)
|
String |
toString()
|
int |
value()
|
static UnitSystem |
valueOf(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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final UnitSystem IMPERIAL
public static final UnitSystem METRIC
| Method Detail |
|---|
public static UnitSystem[] values()
for (UnitSystem c : UnitSystem.values()) System.out.println(c);
public static UnitSystem valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int value()
public static UnitSystem fromValue(int type)
public String toString()
toString in class Enum<UnitSystem>
|
Follow us on GitHub |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||