public enum ModelType extends Enum<ModelType>
Models.| Enum Constant and Description |
|---|
CLUSTER
Cluster type.
|
COMMODITY
Commodity type.
|
TRANSPORT
Transport type.
|
| Modifier and Type | Field and Description |
|---|---|
private String |
type
The string representation of the type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(String type)
Checks if this type is the same as the provided type.
|
protected static ModelType |
getModelType(String type)
Returns the enum version of a model type from a string.
|
String |
toString() |
static ModelType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModelType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModelType CLUSTER
public static final ModelType COMMODITY
public static final ModelType TRANSPORT
private final String type
public static ModelType[] values()
for (ModelType c : ModelType.values()) System.out.println(c);
public static ModelType 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 boolean equals(String type)
type - a string of type.