public static enum EngineModel.EngineVendor extends Enum<EngineModel.EngineVendor>
| Modifier and Type | Method and Description |
|---|---|
static EngineModel.EngineVendor |
fromName(String name)
Gets an engine vendor from its name.
|
static EngineModel.EngineVendor |
fromValue(int value)
Gets an engine vendor from its integer value.
|
int |
getCode()
Gets the integer value of the engine vendor.
|
String |
toString()
Returns the string message of the engine vendor.
|
int |
value()
Gets the integer value of the engine vendor.
|
static EngineModel.EngineVendor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EngineModel.EngineVendor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EngineModel.EngineVendor unknown
public static final EngineModel.EngineVendor honeywell
public static final EngineModel.EngineVendor zebra
public static final EngineModel.EngineVendor sunlux
public static EngineModel.EngineVendor[] values()
for (EngineModel.EngineVendor c : EngineModel.EngineVendor.values()) System.out.println(c);
public static EngineModel.EngineVendor 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.EngineVendor>public static EngineModel.EngineVendor fromValue(int value)
value - The integer value of the engine vendor.public static EngineModel.EngineVendor fromName(String name)
name - The name of the engine vendor.