Enum Constant and Description |
---|
Ace |
Eight |
Five |
Four |
Jack |
King |
Nine |
Queen |
Seven |
Six |
Ten |
Three |
Two |
Modifier and Type | Method and Description |
---|---|
int |
getIntValue() |
java.lang.String |
getValue() |
static CardValue |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CardValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CardValue Ace
public static final CardValue Two
public static final CardValue Three
public static final CardValue Four
public static final CardValue Five
public static final CardValue Six
public static final CardValue Seven
public static final CardValue Eight
public static final CardValue Nine
public static final CardValue Ten
public static final CardValue Jack
public static final CardValue Queen
public static final CardValue King
public static CardValue[] values()
for (CardValue c : CardValue.values()) System.out.println(c);
public static CardValue 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 java.lang.String getValue()
public int getIntValue()