public enum FunctionalRoadClass extends java.lang.Enum<FunctionalRoadClass>
| Enum Constant and Description |
|---|
INVALID
Represents that the road type is invalid.
|
LOCAL_CONNECTING_ROAD
Represents a local connecting road.
|
LOCAL_ROAD
Represents a local road.
|
LOCAL_ROAD_OF_HIGH_IMPORTANCE
Represents a local road of high importance.
|
MAJOR_ROAD
Represents a major road that is less important than a motorway.
|
MOTORWAY
Represents a motorway, freeway, or other major road.
|
OTHER_MAJOR_ROAD
Represent another major road.
|
SECONDARY_ROAD
Represents a secondary road.
|
| Modifier and Type | Method and Description |
|---|---|
static FunctionalRoadClass |
fromInt(int value)
Static method used for searching through enum to check if passed value is valid.
|
int |
getValue()
Getter for the value of the current type of road.
|
static FunctionalRoadClass |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FunctionalRoadClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FunctionalRoadClass INVALID
public static final FunctionalRoadClass MOTORWAY
public static final FunctionalRoadClass MAJOR_ROAD
public static final FunctionalRoadClass OTHER_MAJOR_ROAD
public static final FunctionalRoadClass SECONDARY_ROAD
public static final FunctionalRoadClass LOCAL_CONNECTING_ROAD
public static final FunctionalRoadClass LOCAL_ROAD_OF_HIGH_IMPORTANCE
public static final FunctionalRoadClass LOCAL_ROAD
public static FunctionalRoadClass[] values()
for (FunctionalRoadClass c : FunctionalRoadClass.values()) System.out.println(c);
public static FunctionalRoadClass 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 nullpublic int getValue()
fromInt(int).@NonNull public static FunctionalRoadClass fromInt(int value)
INVALID.value - integer that should return a proper functional road class.