public enum TransportationMode extends Enum<TransportationMode>
We started with a subset of the definition found in the OSM Wiki https://wiki.openstreetmap.org/wiki/Key:access#Land-based_transportation
Enum Constant and Description |
---|
BICYCLE |
FOOT |
MOTOR_VEHICLE |
OTHER |
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static TransportationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransportationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransportationMode OTHER
public static final TransportationMode MOTOR_VEHICLE
public static final TransportationMode BICYCLE
public static final TransportationMode FOOT
public static TransportationMode[] values()
for (TransportationMode c : TransportationMode.values()) System.out.println(c);
public static TransportationMode 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 int getValue()
Copyright © 2012–2020. All rights reserved.