public enum Fuel extends java.lang.Enum<Fuel> implements CopertField
Enum Constant and Description |
---|
DIESEL |
PETROL |
PETROL_HYBRID |
RANDOM |
Modifier and Type | Method and Description |
---|---|
static Fuel |
getValue(java.lang.String string) |
java.lang.String |
matcher()
Name of the field used to read the Copert tree.
|
static Fuel |
randomSelector()
Special random Copert field
|
static Fuel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Fuel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getValue, valueOf
public static final Fuel PETROL
public static final Fuel DIESEL
public static final Fuel PETROL_HYBRID
public static final Fuel RANDOM
public static Fuel[] values()
for (Fuel c : Fuel.values()) System.out.println(c);
public static Fuel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String matcher()
CopertField
matcher
in interface CopertField
public static Fuel getValue(java.lang.String string)
public static Fuel randomSelector()
CopertField
randomSelector
in interface CopertField