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