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