public enum EngineModel extends Enum<EngineModel>
| Modifier and Type | Class and Description |
|---|---|
static class |
EngineModel.EngineVendor
The EngineVendor enum represents different types of engine vendors.
|
| Enum Constant and Description |
|---|
N4603 |
N5703 |
N6703 |
N6803 |
SE2707 |
SE4107 |
SE4770 |
SE4850 |
SE5500 |
SE965 |
Unknown |
XL3030ER |
| Modifier and Type | Method and Description |
|---|---|
static EngineModel |
fromName(String name)
Gets an engine model from its name.
|
static EngineModel |
fromValue(int value)
Gets an engine model from its integer value.
|
int |
getCode()
Gets the integer value of the engine model.
|
EngineModel.EngineVendor |
getVendor()
Gets the vendor of the engine model.
|
String |
toString()
Returns the string message of the engine model.
|
int |
value()
Gets the integer value of the engine model.
|
static EngineModel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EngineModel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EngineModel Unknown
public static final EngineModel SE4770
public static final EngineModel SE4107
public static final EngineModel SE2707
public static final EngineModel SE965
public static final EngineModel SE4850
public static final EngineModel N4603
public static final EngineModel N6703
public static final EngineModel N6803
public static final EngineModel XL3030ER
public static final EngineModel SE5500
public static final EngineModel N5703
public static EngineModel[] values()
for (EngineModel c : EngineModel.values()) System.out.println(c);
public static EngineModel 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 int getCode()
public String toString()
toString in class Enum<EngineModel>public static EngineModel fromValue(int value) throws IllegalArgumentException
value - The integer value of the engine model.IllegalArgumentException - If the integer value does not correspond to any engine model.public static EngineModel fromName(String name) throws IllegalArgumentException
name - The name of the engine model.IllegalArgumentException - If the name does not correspond to any engine model.public EngineModel.EngineVendor getVendor()