public static enum SavedTrip.RoutePreference extends Enum<SavedTrip.RoutePreference>
RoutePreference
represents the preferred route for a SavedTrip
.Enum Constant and Description |
---|
FASTEST
Prefer the fastest route.
|
SHORTEST
Prefer the shortest route.
|
Modifier and Type | Method and Description |
---|---|
static SavedTrip.RoutePreference |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SavedTrip.RoutePreference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName(value="0") public static final SavedTrip.RoutePreference FASTEST
@SerializedName(value="1") public static final SavedTrip.RoutePreference SHORTEST
public static SavedTrip.RoutePreference[] values()
for (SavedTrip.RoutePreference c : SavedTrip.RoutePreference.values()) System.out.println(c);
public static SavedTrip.RoutePreference valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2013-2018 INRIX, Inc. All Rights Reserved.