public enum BusPosition extends Enum<BusPosition>
Clase Java para BusPosition.
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
<simpleType name="BusPosition">
<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 BusPosition |
fromValue(int v) |
int |
value() |
static BusPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BusPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BusPosition LEFT_FRONT_SEAT
public static final BusPosition RIGHT_FRONT_SEAT
public static final BusPosition OTHER_SEATS
public static final BusPosition STANDING
public static BusPosition[] values()
for (BusPosition c : BusPosition.values()) System.out.println(c);
public static BusPosition 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 BusPosition fromValue(int v)
Copyright © 2018. All rights reserved.