public enum CardModifier extends java.lang.Enum<CardModifier>
Modifier and Type | Method and Description |
---|---|
int |
apply(int original,
int modifierValue) |
static CardModifier |
parse(java.lang.String modifier) |
java.lang.String |
toString() |
static CardModifier |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CardModifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CardModifier Plus
public static final CardModifier Minus
public static final CardModifier Multiply
public static final CardModifier Divide
public static CardModifier[] values()
for (CardModifier c : CardModifier.values()) System.out.println(c);
public static CardModifier 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 static CardModifier parse(java.lang.String modifier)
public int apply(int original, int modifierValue)
public java.lang.String toString()
toString
in class java.lang.Enum<CardModifier>