| Enum Constant and Description |
|---|
Gas
A gas material.
|
Metal
A metal material.
|
Stone
A stone material.
|
| Modifier and Type | Method and Description |
|---|---|
static Material |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Material[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Material Gas
public static final Material Stone
public static final Material Metal
public static Material[] values()
for (Material c : Material.values()) System.out.println(c);
public static Material 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 null