public enum RoadType extends Enum<RoadType>
Clase Java para RoadType.
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
<simpleType name="RoadType">
<restriction base="{http://www.w3.org/2001/XMLSchema}int">
<enumeration value="1"/>
<enumeration value="2"/>
<enumeration value="3"/>
<enumeration value="4"/>
<enumeration value="5"/>
<enumeration value="6"/>
<enumeration value="7"/>
<enumeration value="8"/>
<enumeration value="9"/>
<enumeration value="10"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
AUTOVIA |
FAST_ROAD |
HIGHWAY |
LINK |
NEIGHBORHOOD_ROAD |
OTHER |
ROAD |
ROAD_WITH_SLOW_LANE |
SERVICE_ROAD |
TOLL_HIGHWAY |
| Modifier and Type | Method and Description |
|---|---|
static RoadType |
fromValue(int v) |
int |
value() |
static RoadType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RoadType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoadType HIGHWAY
public static final RoadType TOLL_HIGHWAY
public static final RoadType AUTOVIA
public static final RoadType FAST_ROAD
public static final RoadType ROAD_WITH_SLOW_LANE
public static final RoadType ROAD
public static final RoadType NEIGHBORHOOD_ROAD
public static final RoadType SERVICE_ROAD
public static final RoadType LINK
public static final RoadType OTHER
public static RoadType[] values()
for (RoadType c : RoadType.values()) System.out.println(c);
public static RoadType 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 value()
public static RoadType fromValue(int v)
Copyright © 2018. All rights reserved.