public enum DiceType extends java.lang.Enum<DiceType>
| Enum Constant and Description |
|---|
D10
a 10 sided die
|
D12
a 12 sided die
|
D20
a 20 sided die
|
D4
a 4 sided die
|
D6
a 6 sided die
|
D8
a 8 sided die
|
| Modifier and Type | Method and Description |
|---|---|
static DiceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DiceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiceType D4
public static final DiceType D6
public static final DiceType D8
public static final DiceType D10
public static final DiceType D12
public static final DiceType D20
public static DiceType[] values()
for (DiceType c : DiceType.values()) System.out.println(c);
public static DiceType 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