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