public enum TravelType extends Enum<TravelType>
| Enum Constant and Description |
|---|
BIKE |
BIKETRANSIT |
CAR |
TRANSIT |
UNSPECIFIED |
WALK |
WALKTRANSIT |
| Modifier and Type | Method and Description |
|---|---|
static EdgeWeightType |
fromString(String key) |
String |
getKey() |
boolean |
isTransit() |
static TravelType |
parse(String travelType) |
String |
toString() |
static TravelType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TravelType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TravelType UNSPECIFIED
public static final TravelType WALK
public static final TravelType BIKE
public static final TravelType TRANSIT
public static final TravelType WALKTRANSIT
public static final TravelType BIKETRANSIT
public static final TravelType CAR
public static TravelType[] values()
for (TravelType c : TravelType.values()) System.out.println(c);
public static TravelType 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 nullpublic static EdgeWeightType fromString(String key)
public String getKey()
public String toString()
toString in class Enum<TravelType>public static TravelType parse(String travelType)
public boolean isTransit()
Copyright © 2017. All rights reserved.