public enum RoadEnvironment extends Enum<RoadEnvironment>
Enum Constant and Description |
---|
BRIDGE |
FERRY |
FORD |
OTHER |
ROAD |
SHUTTLE_TRAIN |
TUNNEL |
Modifier and Type | Method and Description |
---|---|
static RoadEnvironment |
find(String name) |
String |
toString() |
static RoadEnvironment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RoadEnvironment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoadEnvironment OTHER
public static final RoadEnvironment ROAD
public static final RoadEnvironment FERRY
public static final RoadEnvironment TUNNEL
public static final RoadEnvironment BRIDGE
public static final RoadEnvironment FORD
public static final RoadEnvironment SHUTTLE_TRAIN
public static final String KEY
public static RoadEnvironment[] values()
for (RoadEnvironment c : RoadEnvironment.values()) System.out.println(c);
public static RoadEnvironment 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 String toString()
toString
in class Enum<RoadEnvironment>
public static RoadEnvironment find(String name)
Copyright © 2012–2020. All rights reserved.