public enum TravelModes extends java.lang.Enum<TravelModes>
| Modifier and Type | Method and Description |
|---|---|
static TravelModes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TravelModes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TravelModes bus
public static final TravelModes subway
public static final TravelModes train
public static final TravelModes tram
public static final TravelModes rail
public static TravelModes[] values()
for (TravelModes c : TravelModes.values()) System.out.println(c);
public static TravelModes 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 null