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