Package org.insa.graphs.model
Enum RoadInformation.RoadType
- java.lang.Object
-
- java.lang.Enum<RoadInformation.RoadType>
-
- org.insa.graphs.model.RoadInformation.RoadType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RoadInformation.RoadType>
- Enclosing class:
- RoadInformation
public static enum RoadInformation.RoadType extends java.lang.Enum<RoadInformation.RoadType>
Enumeration for road types.- See Also:
- OpenStreetMap reference for road types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COASTLINE
CYCLEWAY
LIVING_STREET
MOTORWAY
MOTORWAY_LINK
PEDESTRIAN
PRIMARY
PRIMARY_LINK
RESIDENTIAL
ROUNDABOUT
SECONDARY
SECONDARY_LINK
SERVICE
TERTIARY
TRACK
TRUNK
TRUNK_LINK
UNCLASSIFIED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RoadInformation.RoadType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RoadInformation.RoadType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOTORWAY
public static final RoadInformation.RoadType MOTORWAY
-
TRUNK
public static final RoadInformation.RoadType TRUNK
-
PRIMARY
public static final RoadInformation.RoadType PRIMARY
-
SECONDARY
public static final RoadInformation.RoadType SECONDARY
-
MOTORWAY_LINK
public static final RoadInformation.RoadType MOTORWAY_LINK
-
TRUNK_LINK
public static final RoadInformation.RoadType TRUNK_LINK
-
PRIMARY_LINK
public static final RoadInformation.RoadType PRIMARY_LINK
-
SECONDARY_LINK
public static final RoadInformation.RoadType SECONDARY_LINK
-
TERTIARY
public static final RoadInformation.RoadType TERTIARY
-
TRACK
public static final RoadInformation.RoadType TRACK
-
RESIDENTIAL
public static final RoadInformation.RoadType RESIDENTIAL
-
UNCLASSIFIED
public static final RoadInformation.RoadType UNCLASSIFIED
-
LIVING_STREET
public static final RoadInformation.RoadType LIVING_STREET
-
SERVICE
public static final RoadInformation.RoadType SERVICE
-
ROUNDABOUT
public static final RoadInformation.RoadType ROUNDABOUT
-
PEDESTRIAN
public static final RoadInformation.RoadType PEDESTRIAN
-
CYCLEWAY
public static final RoadInformation.RoadType CYCLEWAY
-
COASTLINE
public static final RoadInformation.RoadType COASTLINE
-
-
Method Detail
-
values
public static RoadInformation.RoadType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RoadInformation.RoadType c : RoadInformation.RoadType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RoadInformation.RoadType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-