public enum TransitRoutePreference extends java.lang.Enum<TransitRoutePreference>
TransitOptions
.Enum Constant and Description |
---|
FEWER_TRANSFERS
Specifies that the calculated route should prefer a limited number of transfers.
|
LESS_WALKING
Specifies that the calculated route should prefer limited amounts of walking.
|
Modifier and Type | Method and Description |
---|---|
static TransitRoutePreference |
from(java.lang.String value) |
java.lang.String |
getValue() |
static TransitRoutePreference |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransitRoutePreference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransitRoutePreference FEWER_TRANSFERS
public static final TransitRoutePreference LESS_WALKING
public static TransitRoutePreference[] values()
for (TransitRoutePreference c : TransitRoutePreference.values()) System.out.println(c);
public static TransitRoutePreference 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 java.lang.String getValue()
@Nullable public static TransitRoutePreference from(java.lang.String value)