public enum VehicleColor extends Enum<VehicleColor>
Clase Java para VehicleColor.
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
<simpleType name="VehicleColor">
<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"/>
<enumeration value="8"/>
<enumeration value="9"/>
<enumeration value="10"/>
<enumeration value="11"/>
<enumeration value="12"/>
<enumeration value="13"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
BEIGE |
BLACK |
BLUE |
BROWN |
GREEN |
GREY |
ORANGE |
OTHER |
PINK |
RED |
VIOLET |
WHITE |
YELLOW |
| Modifier and Type | Method and Description |
|---|---|
static VehicleColor |
fromValue(int v) |
int |
value() |
static VehicleColor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VehicleColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VehicleColor YELLOW
public static final VehicleColor BLUE
public static final VehicleColor BEIGE
public static final VehicleColor WHITE
public static final VehicleColor GREY
public static final VehicleColor BROWN
public static final VehicleColor ORANGE
public static final VehicleColor BLACK
public static final VehicleColor RED
public static final VehicleColor PINK
public static final VehicleColor GREEN
public static final VehicleColor VIOLET
public static final VehicleColor OTHER
public static VehicleColor[] values()
for (VehicleColor c : VehicleColor.values()) System.out.println(c);
public static VehicleColor 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 VehicleColor fromValue(int v)
Copyright © 2018. All rights reserved.