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