public enum MaterialType extends java.lang.Enum<MaterialType>
The MaterialType enumeration describes each type of material phase.
Enum Constant and Description |
---|
GAS
This literal indicates a gas material phase.
|
LIQUID
This literal indicates a liquid material phase.
|
SOLID
This literal indicates a solid material phase.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns the string name of the enumerated value.
|
MaterialType |
toType(java.lang.String name)
Returns the type of enumeration keyed on name.
|
static MaterialType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MaterialType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MaterialType GAS
This literal indicates a gas material phase.
public static final MaterialType LIQUID
This literal indicates a liquid material phase.
public static final MaterialType SOLID
This literal indicates a solid material phase.
public static MaterialType[] values()
for (MaterialType c : MaterialType.values()) System.out.println(c);
public static MaterialType 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 MaterialType toType(java.lang.String name)
Returns the type of enumeration keyed on name. Returns null if invalid name.
name
- The name associated with the enumerated value.
The type of enumeration.
public java.lang.String toString()
Returns the string name of the enumerated value.
toString
in class java.lang.Enum<MaterialType>
The name of the enumerated value.