Enum Constant and Description |
---|
ACE |
EIGHT |
FIVE |
FOUR |
JACK |
KING |
NINE |
QUEEN |
SEVEN |
SIX |
TEN |
THREE |
TWO |
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static CardRank |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CardRank[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CardRank TWO
public static final CardRank THREE
public static final CardRank FOUR
public static final CardRank FIVE
public static final CardRank SIX
public static final CardRank SEVEN
public static final CardRank EIGHT
public static final CardRank NINE
public static final CardRank TEN
public static final CardRank JACK
public static final CardRank QUEEN
public static final CardRank KING
public static final CardRank ACE
public static CardRank[] values()
for (CardRank c : CardRank.values()) System.out.println(c);
public static CardRank 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 int getValue()