public enum Surface extends Enum<Surface>
Clase Java para Surface.
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
<simpleType name="Surface">
<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"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CLEAN_AND_DRY |
FROST |
LOOSE_GRAVEL |
MUD |
OIL |
OTHER |
SHADE |
SNOW |
WET |
| Modifier and Type | Method and Description |
|---|---|
static Surface |
fromValue(int v) |
int |
value() |
static Surface |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Surface[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Surface CLEAN_AND_DRY
public static final Surface SHADE
public static final Surface WET
public static final Surface FROST
public static final Surface SNOW
public static final Surface MUD
public static final Surface LOOSE_GRAVEL
public static final Surface OIL
public static final Surface OTHER
public static Surface[] values()
for (Surface c : Surface.values()) System.out.println(c);
public static Surface 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 Surface fromValue(int v)
Copyright © 2018. All rights reserved.