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