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