|
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<TravelMode>
com.google.gwt.maps.client.services.TravelMode
public enum TravelMode
The valid travel modes that can be specified in a DirectionsRequest as well as the travel modes returned in a DirectionsStep.
See TravelMode API Doc
| Enum Constant Summary | |
|---|---|
BICYCLING
Specifies a bicycling directions request. |
|
DRIVING
Specifies a driving directions request. |
|
WALKING
Specifies a walking directions request. |
|
| Method Summary | |
|---|---|
static TravelMode |
fromValue(String type)
|
String |
toString()
|
String |
value()
|
static TravelMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TravelMode[] |
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 TravelMode BICYCLING
public static final TravelMode DRIVING
public static final TravelMode WALKING
| Method Detail |
|---|
public static TravelMode[] values()
for (TravelMode c : TravelMode.values()) System.out.println(c);
public static TravelMode 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 String value()
public static TravelMode fromValue(String type)
public String toString()
toString in class Enum<TravelMode>
|
Follow us on GitHub |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||