public enum Velocity extends Enum<Velocity>
Clase Java para Velocity.
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
<simpleType name="Velocity">
<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"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
LESS_THAN_50_KMH |
V_100_KMH |
V_120_KMH |
V_50_KMH |
V_60_KMH |
V_80_KMH |
V_90_KMH |
| Modifier and Type | Method and Description |
|---|---|
static Velocity |
fromValue(int v) |
int |
value() |
static Velocity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Velocity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Velocity V_120_KMH
public static final Velocity V_100_KMH
public static final Velocity V_90_KMH
public static final Velocity V_80_KMH
public static final Velocity V_60_KMH
public static final Velocity V_50_KMH
public static final Velocity LESS_THAN_50_KMH
public static Velocity[] values()
for (Velocity c : Velocity.values()) System.out.println(c);
public static Velocity 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 Velocity fromValue(int v)
Copyright © 2018. All rights reserved.